diff options
author | Lars Knoll <lars.knoll@theqtcompany.com> | 2014-12-30 18:29:21 +0100 |
---|---|---|
committer | Lars Knoll <lars.knoll@digia.com> | 2015-01-08 12:34:32 +0100 |
commit | 3e054a80dd4ac2c67c94d6f584d244f461d98269 (patch) | |
tree | 33ca54e6a5846973ce57d526a828bc503c4ba456 /src/qml/qml/v8 | |
parent | 486965a12e4b11ba6d5ab4578cd199e8f7ec4cb0 (diff) |
Get rid of QV8Engine::toString
Change-Id: Ib51fa09ae251c1b7b8878ecdf920016f8fcc0067
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/qml/v8')
-rw-r--r-- | src/qml/qml/v8/qv8engine.cpp | 5 | ||||
-rw-r--r-- | src/qml/qml/v8/qv8engine_p.h | 3 |
2 files changed, 0 insertions, 8 deletions
diff --git a/src/qml/qml/v8/qv8engine.cpp b/src/qml/qml/v8/qv8engine.cpp index 7014911d39..4a3156b4cc 100644 --- a/src/qml/qml/v8/qv8engine.cpp +++ b/src/qml/qml/v8/qv8engine.cpp @@ -981,10 +981,5 @@ int QV8Engine::consoleCountHelper(const QString &file, quint16 line, quint16 col return number; } -QV4::ReturnedValue QV8Engine::toString(const QString &string) -{ - return QV4::Encode(m_v4Engine->newString(string)); -} - QT_END_NAMESPACE diff --git a/src/qml/qml/v8/qv8engine_p.h b/src/qml/qml/v8/qv8engine_p.h index 41564cc222..7bd3e56a9d 100644 --- a/src/qml/qml/v8/qv8engine_p.h +++ b/src/qml/qml/v8/qv8engine_p.h @@ -203,9 +203,6 @@ public: static QVariantMap variantMapFromJS(QV4::Object *o) { return objectToVariant(o->engine(), o).toMap(); } - // Return a JS string for the given QString \a string - QV4::ReturnedValue toString(const QString &string); - // Return the network access manager for this engine. By default this returns the network // access manager of the QQmlEngine. It is overridden in the case of a threaded v8 // instance (like in WorkerScript). |