diff --git a/SLS_C/src/builtin.c b/SLS_C/src/builtin.c index 0f24b9c..110ef4d 100644 --- a/SLS_C/src/builtin.c +++ b/SLS_C/src/builtin.c @@ -66,7 +66,7 @@ Boolean builtin_ln(InterpreterState *interpreter_state); Boolean builtin_log(InterpreterState *interpreter_state); Boolean builtin_logb(InterpreterState *interpreter_state); // Boolean builtin_map(InterpreterState *interpreter_state); -Boolean builtin_match(InterpreterState *interpreter_state); +// Boolean builtin_match(InterpreterState *interpreter_state); Boolean builtin_max(InterpreterState *interpreter_state); // Boolean builtin_mean(InterpreterState *interpreter_state); Boolean builtin_min(InterpreterState *interpreter_state); @@ -331,12 +331,6 @@ Boolean load_builtins(InterpreterState *interpreter_state) { if (!hash_table_put_funcs(interpreter_state->functions, SLS_STR("logb"), func)) return FALSE; - func = (FunctionItem *)malloc(sizeof(FunctionItem)); - if (func == NULL) return FALSE; - *func = (FunctionItem){ .type = FUNCTION_BUILTIN, .builtin = *builtin_match}; - if (!hash_table_put_funcs(interpreter_state->functions, SLS_STR("match"), func)) - return FALSE; - func = (FunctionItem *)malloc(sizeof(FunctionItem)); if (func == NULL) return FALSE; *func = (FunctionItem){ .type = FUNCTION_BUILTIN, .builtin = *builtin_max}; @@ -1643,11 +1637,6 @@ Boolean builtin_logb(InterpreterState *interpreter_state) { return FALSE; } -Boolean builtin_match(InterpreterState *interpreter_state) { - (void)interpreter_state; - return FALSE; -} - Boolean builtin_max(InterpreterState *interpreter_state) { (void)interpreter_state; return FALSE;