aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqml.h
diff options
context:
space:
mode:
authorChris Adams <christopher.adams@nokia.com>2012-05-14 13:01:29 +1000
committerQt by Nokia <qt-info@nokia.com>2012-06-12 15:40:13 +0200
commit3c0973b75a8ea8ac3339ec00f7d4c09f0ae8983f (patch)
treee5722ec40ad1450a37d698d6062515fb4328b502 /src/qml/qml/qqml.h
parent41e8b0e0d990f34913449de6456a13371f4f9297 (diff)
Remove non-templated qobject module api registration function
Previously, both templated and non-templated qobject module api registration functions were provided as public API. The non-templated version is identical to the templated version, except that bindings which access properties of module apis registered with that function cannot be optimized with v4. This commit removes the non-templated version of the function. Change-Id: Ic417aa241f1172bf6d055bdc7f528d7e9304097b Reviewed-by: Martin Jones <martin.jones@nokia.com>
Diffstat (limited to 'src/qml/qml/qqml.h')
-rw-r--r--src/qml/qml/qqml.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/qml/qml/qqml.h b/src/qml/qml/qqml.h
index fedd0e417a..c7092a6c76 100644
--- a/src/qml/qml/qqml.h
+++ b/src/qml/qml/qqml.h
@@ -416,20 +416,6 @@ inline int qmlRegisterModuleApi(const char *uri, int versionMajor, int versionMi
return QQmlPrivate::qmlregister(QQmlPrivate::ModuleApiRegistration, &api);
}
-inline int qmlRegisterModuleApi(const char *uri, int versionMajor, int versionMinor,
- QObject *(*callback)(QQmlEngine *, QJSEngine *))
-{
- QQmlPrivate::RegisterModuleApi api = {
- 0,
-
- uri, versionMajor, versionMinor,
-
- 0, callback, 0 // unknown QObject instance type
- };
-
- return QQmlPrivate::qmlregister(QQmlPrivate::ModuleApiRegistration, &api);
-}
-
template <typename T>
inline int qmlRegisterModuleApi(const char *uri, int versionMajor, int versionMinor,
QObject *(*callback)(QQmlEngine *, QJSEngine *))