Bug 784608 (part 8) - Remove FunctionBox::parent. r=luke.

--HG--
extra : rebase_source : 4cd9ee4acfdbcd262967fbebf536e8713abd5b56
This commit is contained in:
Nicholas Nethercote 2012-08-23 20:06:40 -07:00
parent 86ce71fef2
commit 3eb58b0432
2 changed files with 0 additions and 3 deletions

View File

@ -392,7 +392,6 @@ FunctionBox::FunctionBox(ObjectBox* traceListHead, JSObject *obj, ParseContext *
: ObjectBox(traceListHead, obj),
siblings(outerpc->functionList),
kids(NULL),
parent(outerpc->sc->inFunction() ? outerpc->sc->funbox() : NULL),
bindings(),
bufStart(0),
bufEnd(0),
@ -4910,7 +4909,6 @@ CompExprTransplanter::transplant(ParseNode *pn)
funboxp = &(*funboxp)->siblings;
*funboxp = funbox->siblings;
funbox->parent = parent;
funbox->siblings = parent->kids;
parent->kids = funbox;
}

View File

@ -293,7 +293,6 @@ struct FunctionBox : public ObjectBox
{
FunctionBox *siblings;
FunctionBox *kids;
FunctionBox *parent;
Bindings bindings; /* bindings for this function */
size_t bufStart;
size_t bufEnd;