From 559ee1a4cad95461b4e29ecd91a20985ca67187e Mon Sep 17 00:00:00 2001 From: ruby0x1 Date: Thu, 3 Dec 2020 08:57:07 -0800 Subject: [PATCH] remove unused length param --- src/include/wren.h | 1 - src/vm/wren_vm.c | 1 - 2 files changed, 2 deletions(-) diff --git a/src/include/wren.h b/src/include/wren.h index 24987542..000e4ae8 100644 --- a/src/include/wren.h +++ b/src/include/wren.h @@ -78,7 +78,6 @@ typedef void (*WrenLoadModuleCompleteFn)(WrenVM* vm, const char* name, WrenLoadM // [onComplete] an optional callback that will be called once Wren is done with the result. typedef struct WrenLoadModuleResult { - long long length; const char* source; WrenLoadModuleCompleteFn onComplete; void* userData; diff --git a/src/vm/wren_vm.c b/src/vm/wren_vm.c index 6b6ae49f..344caf61 100644 --- a/src/vm/wren_vm.c +++ b/src/vm/wren_vm.c @@ -713,7 +713,6 @@ static Value importModule(WrenVM* vm, Value name) // If the host didn't provide it, see if it's a built in optional module. if (result.source == NULL) { - result.length = 0; result.onComplete = NULL; ObjString* nameString = AS_STRING(name); #if WREN_OPT_META