remove dead function: sym_GetDefinedValue

This commit is contained in:
Jakub Kądziołka
2020-10-12 13:13:16 +02:00
parent 0836f67d42
commit 4419f0d54f
2 changed files with 0 additions and 18 deletions

View File

@@ -322,23 +322,6 @@ uint32_t sym_GetConstantValue(char const *s)
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;