diff options
author | Jedrzej Nowacki <jedrzej.nowacki@nokia.com> | 2009-08-18 15:49:43 (GMT) |
---|---|---|
committer | Jedrzej Nowacki <jedrzej.nowacki@nokia.com> | 2009-08-19 08:30:03 (GMT) |
commit | 7ef023246eb7d4d4785a04bef74d79d552ed400b (patch) | |
tree | 4a371a8c26b6aeeac97c7a06417cf9f0ee10f95b /src/script | |
parent | 72ae891ec6b1798904962e15b36b506f5b850761 (diff) | |
download | Qt-7ef023246eb7d4d4785a04bef74d79d552ed400b.zip Qt-7ef023246eb7d4d4785a04bef74d79d552ed400b.tar.gz Qt-7ef023246eb7d4d4785a04bef74d79d552ed400b.tar.bz2 |
Internal API clean up.
Static method QScriptValue::initFromJSCValue was removed.
Reviewed-by: Kent Hansen
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; |