mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-11 14:18:42 +01:00
remove unused length param
This commit is contained in:
@ -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.
|
// [onComplete] an optional callback that will be called once Wren is done with the result.
|
||||||
typedef struct WrenLoadModuleResult
|
typedef struct WrenLoadModuleResult
|
||||||
{
|
{
|
||||||
long long length;
|
|
||||||
const char* source;
|
const char* source;
|
||||||
WrenLoadModuleCompleteFn onComplete;
|
WrenLoadModuleCompleteFn onComplete;
|
||||||
void* userData;
|
void* userData;
|
||||||
|
|||||||
@ -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 the host didn't provide it, see if it's a built in optional module.
|
||||||
if (result.source == NULL)
|
if (result.source == NULL)
|
||||||
{
|
{
|
||||||
result.length = 0;
|
|
||||||
result.onComplete = NULL;
|
result.onComplete = NULL;
|
||||||
ObjString* nameString = AS_STRING(name);
|
ObjString* nameString = AS_STRING(name);
|
||||||
#if WREN_OPT_META
|
#if WREN_OPT_META
|
||||||
|
|||||||
Reference in New Issue
Block a user