Remove unused method
authorLars Knoll <lars.knoll@digia.com>
Tue, 4 Dec 2012 21:50:49 +0000 (13:50 -0800)
committerSimon Hausmann <simon.hausmann@digia.com>
Wed, 5 Dec 2012 00:04:45 +0000 (01:04 +0100)
Change-Id: Ic8dd47453951bd129e0dcceeb43ecfa299d4c189
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
qmljs_environment.cpp
qmljs_environment.h

index c542422..ca3c43b 100644 (file)
@@ -222,25 +222,6 @@ void ExecutionContext::init(ExecutionEngine *eng)
     eng->exception = Value::undefinedValue();
 }
 
-PropertyDescriptor *ExecutionContext::lookupPropertyDescriptor(String *name, PropertyDescriptor *tmp)
-{
-    for (ExecutionContext *ctx = this; ctx; ctx = ctx->outer()) {
-        if (ctx->withObject) {
-            With *w = ctx->withObject;
-            while (w) {
-                if (PropertyDescriptor *pd = w->object->__getPropertyDescriptor__(this, name, tmp))
-                    return pd;
-                w = w->next;
-            }
-        }
-        if (ctx->activation) {
-            if (PropertyDescriptor *pd = ctx->activation->__getPropertyDescriptor__(this, name, tmp))
-                return pd;
-        }
-    }
-    return 0;
-}
-
 bool ExecutionContext::deleteProperty(String *name)
 {
     for (ExecutionContext *ctx = this; ctx; ctx = ctx->outer()) {
index dca22dc..4063f38 100644 (file)
@@ -120,7 +120,6 @@ struct ExecutionContext
     void throwReferenceError(Value value);
     void throwUnimplemented(const QString &message);
 
-    PropertyDescriptor *lookupPropertyDescriptor(String *name, PropertyDescriptor *tmp);
     void setProperty(String *name, Value value);
     Value getProperty(String *name);
     void inplaceBitOp(Value value, String *name, BinOp op);