ref: 4419f0d54f32eaf3e34b8b9154b71d832bdb903c
parent: 0836f67d429d2f545f43e203023d174ca4442779
author: Jakub Kądziołka <kuba@kadziolka.net>
date: Mon Oct 12 09:13:16 EDT 2020
remove dead function: sym_GetDefinedValue
--- a/include/asm/symbol.h
+++ b/include/asm/symbol.h
@@ -125,7 +125,6 @@
struct Symbol *sym_AddMacro(char const *symName, int32_t defLineNo, char *body, size_t size);
struct Symbol *sym_Ref(char const *symName);
struct Symbol *sym_AddString(char const *symName, char const *value);
-uint32_t sym_GetDefinedValue(char const *s);
void sym_Purge(char const *symName);
void sym_Init(void);
--- a/src/asm/symbol.c
+++ b/src/asm/symbol.c
@@ -322,23 +322,6 @@
return 0;
}
-/*
- * Return a defined symbols value... aborts if not defined yet
- */
-uint32_t sym_GetDefinedValue(char const *s)
-{
- struct Symbol const *sym = sym_FindSymbol(s);
-
- if (sym == NULL || !sym_IsDefined(sym))
- error("'%s' not defined\n", s);
- else if (!sym_IsNumeric(sym))
- error("'%s' is a macro or string symbol\n", s);
- else
- return sym_GetValue(sym);
-
- return 0;
-}
-
char const *sym_GetCurrentSymbolScope(void)
{
return labelScope;