diff options
Diffstat (limited to 'src/script')
-rw-r--r-- | src/script/api/qscriptengine.cpp | 1 | ||||
-rw-r--r-- | src/script/api/qscriptvalue.cpp | 11 | ||||
-rw-r--r-- | src/script/api/qscriptvalue_p.h | 4 |
3 files changed, 0 insertions, 16 deletions
diff --git a/src/script/api/qscriptengine.cpp b/src/script/api/qscriptengine.cpp index e5eaafb..261efce 100644 --- a/src/script/api/qscriptengine.cpp +++ b/src/script/api/qscriptengine.cpp @@ -853,7 +853,6 @@ QScriptValue QScriptEnginePrivate::scriptValueFromJSCValue(JSC::JSValue value) QScriptValuePrivate *p_value = new QScriptValuePrivate(); p_value->engine = q; p_value->initFrom(value); - return QScriptValuePrivate::get(p_value); } diff --git a/src/script/api/qscriptvalue.cpp b/src/script/api/qscriptvalue.cpp index 3bf976b..7c8bd56 100644 --- a/src/script/api/qscriptvalue.cpp +++ b/src/script/api/qscriptvalue.cpp @@ -333,17 +333,6 @@ void QScriptValuePrivate::initFrom(const QString &value) stringValue = value; } -void QScriptValuePrivate::initFromJSCValue(QScriptValue &result, - QScriptEngine *engine, - JSC::JSValue value) -{ - Q_ASSERT(!result.isValid()); - result.d_ptr = new QScriptValuePrivate(); - result.d_ptr->engine = engine; - result.d_ptr->initFrom(value); - result.d_ptr->ref.ref(); -} - bool QScriptValuePrivate::isJSC() const { return (type == JSC); diff --git a/src/script/api/qscriptvalue_p.h b/src/script/api/qscriptvalue_p.h index a3ebbed..c0d1dcb 100644 --- a/src/script/api/qscriptvalue_p.h +++ b/src/script/api/qscriptvalue_p.h @@ -116,10 +116,6 @@ public: void initFrom(double value); void initFrom(const QString &value); - static void initFromJSCValue(QScriptValue &result, - QScriptEngine *engine, - JSC::JSValue value); - bool isJSC() const; QVariant &variantValue() const; |