summaryrefslogtreecommitdiff
path: root/lib/util/enum_to_name.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/util/enum_to_name.c')
-rw-r--r--lib/util/enum_to_name.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/util/enum_to_name.c b/lib/util/enum_to_name.c
deleted file mode 100644
index 70e3c2f..0000000
--- a/lib/util/enum_to_name.c
+++ /dev/null
@@ -1,16 +0,0 @@
-/* SPDX-License-Identifier: ISC */
-#include <string.h>
-
-#include "util.h"
-
-const char *enum_to_name(const enum_map_t *map, int value)
-{
- size_t i;
-
- for (i = 0; map[i].name != NULL; ++i) {
- if (map[i].value == value)
- return map[i].name;
- }
-
- return NULL;
-}