remove unused length param

This commit is contained in:
ruby0x1
2020-12-03 08:57:07 -08:00
parent 1a95253824
commit 559ee1a4ca
2 changed files with 0 additions and 2 deletions

View File

@ -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;

View File

@ -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