diff options
author | Lars Knoll <lars.knoll@digia.com> | 2013-02-14 11:53:23 +0100 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2013-02-14 14:51:15 +0100 |
commit | bed14ea2680d121f0cd575d5fc1138bee1b7045a (patch) | |
tree | 6327cc0c848271ca68d0c81c22854c1ba98c9db5 /src/v4/qv4functionobject.h | |
parent | 7fb0347efac6320fcbae121b27618f3347717bb8 (diff) |
Remove another virtual and de-inline a call method
Change-Id: Ia7cc0bf9f4024a65020fef75666ae13d3691bc54
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/v4/qv4functionobject.h')
-rw-r--r-- | src/v4/qv4functionobject.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/v4/qv4functionobject.h b/src/v4/qv4functionobject.h index ae8bd531..9d559442 100644 --- a/src/v4/qv4functionobject.h +++ b/src/v4/qv4functionobject.h @@ -159,8 +159,6 @@ struct Q_V4_EXPORT FunctionObject: Object { virtual Value construct(ExecutionContext *context, Value *args, int argc); virtual Value call(ExecutionContext *, Value, Value *, int); - virtual struct ScriptFunction *asScriptFunction() { return 0; } - protected: static const ManagedVTable static_vtbl; static void markObjects(Managed *that); @@ -198,9 +196,7 @@ struct BuiltinFunction: FunctionObject { Value (*code)(ExecutionContext *parentContext, Value thisObject, Value *args, int argc); BuiltinFunction(ExecutionContext *scope, String *name, Value (*code)(ExecutionContext *, Value, Value *, int)); - virtual Value call(ExecutionContext *context, Value thisObject, Value *args, int argc) { - return code(context, thisObject, args, argc); - } + virtual Value call(ExecutionContext *context, Value thisObject, Value *args, int argc); virtual Value construct(ExecutionContext *ctx, Value *, int); }; @@ -210,8 +206,6 @@ struct ScriptFunction: FunctionObject { virtual Value call(ExecutionContext *context, Value thisObject, Value *args, int argc); virtual Value construct(ExecutionContext *context, Value *args, int argc); - - virtual ScriptFunction *asScriptFunction() { return this; } }; struct BoundFunction: FunctionObject { |