summaryrefslogtreecommitdiff
path: root/lib/util/enum_by_name.c
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@tele2.at>2018-11-23 14:13:52 +0100
committerDavid Oberhollenzer <david.oberhollenzer@tele2.at>2018-11-23 23:00:58 +0100
commitd9a5736bdfa9db29e94c5431bb8a9bc92a24585c (patch)
tree59095ed17fac70631b1135101f3e98c583363b2d /lib/util/enum_by_name.c
parentc14c3c0173d7bebeb3ccac687e49909164845d57 (diff)
Remove some no longer needed cruft
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
Diffstat (limited to 'lib/util/enum_by_name.c')
-rw-r--r--lib/util/enum_by_name.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/util/enum_by_name.c b/lib/util/enum_by_name.c
deleted file mode 100644
index fa0131b..0000000
--- a/lib/util/enum_by_name.c
+++ /dev/null
@@ -1,16 +0,0 @@
-/* SPDX-License-Identifier: ISC */
-#include <string.h>
-
-#include "util.h"
-
-const enum_map_t *enum_by_name(const enum_map_t *map, const char *name)
-{
- size_t i;
-
- for (i = 0; map[i].name != NULL; ++i) {
- if (!strcmp(map[i].name, name))
- return map + i;
- }
-
- return NULL;
-}