1
0
forked from Mirror/wren

Remove some stale TODOs.

This commit is contained in:
Bob Nystrom
2014-01-20 13:57:44 -08:00
parent 232eb9fab5
commit 8c5ef693d0
2 changed files with 0 additions and 3 deletions

View File

@ -64,7 +64,6 @@ void wrenBindSuperclass(WrenVM* vm, ObjClass* subclass, ObjClass* superclass)
ObjClass* wrenNewClass(WrenVM* vm, ObjClass* superclass, int numFields)
{
// Create the metaclass.
// TODO: Handle static fields.
ObjClass* metaclass = wrenNewSingleClass(vm, 0);
metaclass->metaclass = vm->classClass;

View File

@ -582,7 +582,6 @@ static bool runInterpreter(WrenVM* vm)
register Upvalue** upvalues;
// These macros are designed to only be invoked within this function.
// TODO: Check for stack overflow.
#define PUSH(value) (fiber->stack[fiber->stackSize++] = value)
#define POP() (fiber->stack[--fiber->stackSize])
#define PEEK() (fiber->stack[fiber->stackSize - 1])
@ -1197,7 +1196,6 @@ static bool runInterpreter(WrenVM* vm)
// Now that we know the total number of fields, make sure we don't
// overflow.
// TODO: Same check for static fields.
if (superclass->numFields + numFields > MAX_FIELDS)
{
STORE_FRAME();