aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2017-08-27 12:04:16 +0200
committerDmitry Vyukov <dvyukov@google.com>2017-08-27 12:04:16 +0200
commite71c87fbf52c83d8e514e4685d40da4d4d0f1a1c (patch)
tree61b232ea1544848865a69989420988587819bb79
parenta3857c4e90fa4a3fbe78bd4b53cdc77aa91533cf (diff)
sys/syz-sysgen: remove dead code
-rw-r--r--sys/syz-sysgen/sysgen.go20
1 files changed, 0 insertions, 20 deletions
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 {