aboutsummaryrefslogtreecommitdiffstats
path: root/src/v4/qv4object.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/v4/qv4object.cpp')
-rw-r--r--src/v4/qv4object.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/v4/qv4object.cpp b/src/v4/qv4object.cpp
index b75b67225b..4f5a6579ec 100644
--- a/src/v4/qv4object.cpp
+++ b/src/v4/qv4object.cpp
@@ -214,15 +214,6 @@ void Object::defineDefaultProperty(ExecutionContext *context, const QString &nam
defineDefaultProperty(s, Value::fromObject(function));
}
-void Object::defineDefaultProperty(ExecutionContext *context, const QString &name, Value (*code)(ExecutionContext *, Value, Value *, int), int argumentCount)
-{
- Q_UNUSED(argumentCount);
- String *s = context->engine->newIdentifier(name);
- FunctionObject* function = context->engine->newBuiltinFunction(context, s, code);
- function->defineReadonlyProperty(context->engine->id_length, Value::fromInt32(argumentCount));
- defineDefaultProperty(s, Value::fromObject(function));
-}
-
void Object::defineReadonlyProperty(ExecutionEngine *engine, const QString &name, Value value)
{
defineReadonlyProperty(engine->newIdentifier(name), value);