Skip to content

Commit

Permalink
fix: remove dummy function
Browse files Browse the repository at this point in the history
  • Loading branch information
liz3 committed Nov 14, 2024
1 parent 7f3c839 commit 9b16ab0
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/vm/datatypes/strings.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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);
}

0 comments on commit 9b16ab0

Please sign in to comment.