From 775d672c867ab68d7152d0f0ad58f548bbfda461 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 12 Jan 2021 17:52:41 -0800 Subject: Removed dead code for getting opcode names --- vm.c | 29 ----------------------------- 1 file changed, 29 deletions(-) (limited to 'vm.c') diff --git a/vm.c b/vm.c index 6969c55..94e18fa 100644 --- a/vm.c +++ b/vm.c @@ -13,30 +13,6 @@ #include "vm.h" -/* - * The names of the opcodes (keep in sync with the enum definition above) - */ -static const char *opcode_names[] = { - [VM_ANYCHAR] = "ANYCHAR", - [VM_STRING] = "STRING", - [VM_RANGE] = "RANGE", - [VM_NOT] = "NOT", - [VM_UPTO_AND] = "UPTO_AND", - [VM_REPEAT] = "REPEAT", - [VM_BEFORE] = "BEFORE", - [VM_AFTER] = "AFTER", - [VM_CAPTURE] = "CAPTURE", - [VM_HIDE] = "HIDE", - [VM_OTHERWISE] = "OTHERWISE", - [VM_CHAIN] = "CHAIN", - [VM_REPLACE] = "REPLACE", - [VM_EQUAL] = "EQUAL", - [VM_NOT_EQUAL] = "NOT_EQUAL", - [VM_REF] = "REF", - [VM_BACKREF] = "BACKREF", - [VM_NODENT] = "NODENT", -}; - // UTF8-compliant char iteration static inline const char *next_char(file_t *f, const char *str) { @@ -54,11 +30,6 @@ static inline const char *next_char(file_t *f, const char *str) return str; } -const char *opcode_name(enum VMOpcode o) -{ - return opcode_names[o]; -} - /* * Recursively deallocate a match object and set to NULL */ -- cgit v1.2.3