From: Lars Knoll Date: Tue, 4 Dec 2012 21:50:49 +0000 (-0800) Subject: Remove unused method X-Git-Tag: upstream/5.2.1~669^2~659^2~744 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4216bf0fe07ccb570eed67c4f7af810335138386;p=platform%2Fupstream%2Fqtdeclarative.git Remove unused method Change-Id: Ic8dd47453951bd129e0dcceeb43ecfa299d4c189 Reviewed-by: Simon Hausmann --- 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);