Get rid of source path in module.

It wasn't useful anyway since it always had the module name for all but
the main script.
This commit is contained in:
Bob Nystrom
2015-10-15 18:17:42 -07:00
parent d5b9f0096c
commit 3b09b35b59
10 changed files with 22 additions and 50 deletions

View File

@ -286,9 +286,6 @@ typedef struct
// The name of the module.
ObjString* name;
// The path to the source file where this module was loaded.
ObjString* sourcePath;
} ObjModule;
// A first-class function object. A raw ObjFn can be used and invoked directly
@ -696,7 +693,7 @@ void wrenMapClear(WrenVM* vm, ObjMap* map);
Value wrenMapRemoveKey(WrenVM* vm, ObjMap* map, Value key);
// Creates a new module.
ObjModule* wrenNewModule(WrenVM* vm, ObjString* name, ObjString* path);
ObjModule* wrenNewModule(WrenVM* vm, ObjString* name);
// Creates a new range from [from] to [to].
Value wrenNewRange(WrenVM* vm, double from, double to, bool isInclusive);