From 9b16ab0c0503ad288bde4a3d7a80e34d15057e97 Mon Sep 17 00:00:00 2001 From: Liz3 Date: Thu, 14 Nov 2024 05:14:38 +0100 Subject: [PATCH] fix: remove dummy function --- src/vm/datatypes/strings.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/vm/datatypes/strings.c b/src/vm/datatypes/strings.c index 3d724594..622f57be 100644 --- a/src/vm/datatypes/strings.c +++ b/src/vm/datatypes/strings.c @@ -884,12 +884,6 @@ static Value isValidUtf8(DictuVM *vm, int argCount, Value *args) { return BOOL_VAL(string->character_len != -1); } -static Value testThing(DictuVM *vm, int argCount, Value *args) { - int argC = argCount-1; - Value func = args[1]; - Value* func_args = args +2; - return callFunction(vm, func, argC, func_args); -} void declareStringMethods(DictuVM *vm) { // Note(Liz3): We need functions from the c stdlib for iswalpha, iswlower, @@ -923,5 +917,4 @@ void declareStringMethods(DictuVM *vm) { defineNative(vm, &vm->stringMethods, "collapseSpaces", collapseSpacesString); defineNative(vm, &vm->stringMethods, "wrap", wrapString); - defineNative(vm, &vm->stringMethods, "testThing", testThing); }