diff options
author | Kent Hansen <kent.hansen@nokia.com> | 2012-01-17 15:42:36 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-02-02 08:10:30 +0100 |
commit | f4c9823007c6819751c034ecb0110d10f02d4c73 (patch) | |
tree | 3fccc5c5abe39085071edb7e70bad71324e5ce07 /src/declarative/qml/v8/qjsvalue.h | |
parent | 54c51c89e21800b3a455127b3c19a3c5b30ee319 (diff) |
Remove QJSValue constructors that take QJSEngine argument
Rationale: These were remnants from QtScript.
The difference from the standard constructors is that the value is
eagerly bound to the engine, so they can be a bit faster. But they
are also more low-level and look ugly in use.
Task-number: QTBUG-23604
Change-Id: I5dae7452389383f60055d5ccc4f28d53c52f6092
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
Diffstat (limited to 'src/declarative/qml/v8/qjsvalue.h')
-rw-r--r-- | src/declarative/qml/v8/qjsvalue.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/declarative/qml/v8/qjsvalue.h b/src/declarative/qml/v8/qjsvalue.h index 897ccb1e39..2cb32f9ba0 100644 --- a/src/declarative/qml/v8/qjsvalue.h +++ b/src/declarative/qml/v8/qjsvalue.h @@ -118,13 +118,6 @@ public: QJSValue callAsConstructor(const QJSValueList &args = QJSValueList()); #ifdef QT_DEPRECATED - QT_DEPRECATED QJSValue(QJSEngine *engine, SpecialValue val); - QT_DEPRECATED QJSValue(QJSEngine *engine, bool val); - QT_DEPRECATED QJSValue(QJSEngine *engine, int val); - QT_DEPRECATED QJSValue(QJSEngine *engine, uint val); - QT_DEPRECATED QJSValue(QJSEngine *engine, double val); - QT_DEPRECATED QJSValue(QJSEngine *engine, const QString &val); - QT_DEPRECATED QJSEngine *engine() const; QT_DEPRECATED bool isFunction() const; @@ -139,11 +132,6 @@ public: private: // force compile error, prevent QJSValue(bool) to be called QJSValue(void *); -#ifdef QT_DEPRECATED - // force compile error, prevent QJSValue(QScriptEngine*, bool) to be called - QJSValue(QJSEngine *, void *); - QJSValue(QJSEngine *, const char *); -#endif QJSValue(QJSValuePrivate*); QJSValue(QScriptPassPointer<QJSValuePrivate>); |