From 4216bf0fe07ccb570eed67c4f7af810335138386 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Tue, 4 Dec 2012 13:50:49 -0800 Subject: [PATCH] Remove unused method Change-Id: Ic8dd47453951bd129e0dcceeb43ecfa299d4c189 Reviewed-by: Simon Hausmann --- qmljs_environment.cpp | 19 ------------------- qmljs_environment.h | 1 - 2 files changed, 20 deletions(-) diff --git a/qmljs_environment.cpp b/qmljs_environment.cpp index c542422..ca3c43b 100644 --- a/qmljs_environment.cpp +++ b/qmljs_environment.cpp @@ -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()) { diff --git a/qmljs_environment.h b/qmljs_environment.h index dca22dc..4063f38 100644 --- a/qmljs_environment.h +++ b/qmljs_environment.h @@ -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); -- 2.7.4