From e71c87fbf52c83d8e514e4685d40da4d4d0f1a1c Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Sun, 27 Aug 2017 12:04:16 +0200 Subject: sys/syz-sysgen: remove dead code --- sys/syz-sysgen/sysgen.go | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'sys') diff --git a/sys/syz-sysgen/sysgen.go b/sys/syz-sysgen/sysgen.go index a197dffee..fa386220b 100644 --- a/sys/syz-sysgen/sysgen.go +++ b/sys/syz-sysgen/sysgen.go @@ -622,16 +622,6 @@ func generateArg( } } fmt.Fprintf(out, "&BufferType{%v, Kind: BufferString, SubKind: %q, Values: %#v, Length: %v}", common(), subkind, vals, size) - case "salg_type": - if want := 0; len(a) != want { - failf("wrong number of arguments for %v arg %v, want %v, got %v", typ, name, want, len(a)) - } - fmt.Fprintf(out, "&BufferType{%v, Kind: BufferAlgType}", common()) - case "salg_name": - if want := 0; len(a) != want { - failf("wrong number of arguments for %v arg %v, want %v, got %v", typ, name, want, len(a)) - } - fmt.Fprintf(out, "&BufferType{%v, Kind: BufferAlgName}", common()) case "vma": canBeArg = true begin, end := "0", "0" @@ -925,16 +915,6 @@ func decodeByteSizeType(typ string) uint8 { return uint8(sz) } -func isIdentifier(s string) bool { - for i, c := range s { - if c == '_' || (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || i > 0 && (c >= '0' && c <= '9') { - continue - } - return false - } - return true -} - func writeSource(file string, data []byte) { src, err := format.Source(data) if err != nil { -- cgit mrf-deployment