From 4417ff31b45f540f0efcccd9f042d9a7ad429e6f Mon Sep 17 00:00:00 2001 From: Frank Busse Date: Mon, 5 Jun 2023 18:20:16 +0100 Subject: ktest-gen: remove unused function --- tools/ktest-gen/ktest-gen.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/tools/ktest-gen/ktest-gen.cpp b/tools/ktest-gen/ktest-gen.cpp index 93e428a9..5c2f3d80 100644 --- a/tools/ktest-gen/ktest-gen.cpp +++ b/tools/ktest-gen/ktest-gen.cpp @@ -36,17 +36,6 @@ static void push_obj(KTest *b, const char *name, unsigned total_bytes, memcpy(o->bytes, bytes, total_bytes); } -static void push_range(KTest *b, const char *name, unsigned value) { - KTestObject *o = &b->objects[b->numObjects++]; - assert(b->numObjects < MAX); - - o->name = strdup(name); - o->numBytes = 4; - o->bytes = (unsigned char *)malloc(o->numBytes); - - *(unsigned *)o->bytes = value; -} - void print_usage_and_exit(char *program_name) { fprintf(stderr, "%s: Tool for generating a ktest file from concrete input, e.g., for using a concrete crashing input as a ktest seed.\n" -- cgit 1.4.1