aboutsummaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-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 {