Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove QJSValue::toInt32() and toUInt32() functions
toInt() and toUInt() should be used instead.

Task-number: QTBUG-23604
Change-Id: Ib64aea139e9082066a1e5096ef9fe3a97c35d3eb
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
  • Loading branch information
Kent Hansen authored and Qt by Nokia committed Feb 2, 2012
1 parent 8872c07 commit 88cb064
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 30 deletions.
28 changes: 0 additions & 28 deletions src/declarative/qml/v8/qjsvalue.cpp
Expand Up @@ -448,34 +448,6 @@ quint32 QJSValue::toUInt() const
return d->toUInt32();
}

#ifdef QT_DEPRECATED

/*!
\obsolete
Use toInt() instead.
*/
qint32 QJSValue::toInt32() const
{
Q_D(const QJSValue);
QScriptIsolate api(d->engine());
return d->toInt32();
}

/*!
\obsolete
Use toUInt() instead.
*/
quint32 QJSValue::toUInt32() const
{
Q_D(const QJSValue);
QScriptIsolate api(d->engine());
return d->toUInt32();
}

#endif // QT_DEPRECATED

/*!
Returns the QVariant value of this QJSValue, if it can be
converted to a QVariant; otherwise returns an invalid QVariant.
Expand Down
2 changes: 0 additions & 2 deletions src/declarative/qml/v8/qjsvalue.h
Expand Up @@ -121,8 +121,6 @@ class Q_DECLARATIVE_EXPORT QJSValue
QT_DEPRECATED QJSEngine *engine() const;

QT_DEPRECATED bool isFunction() const;
QT_DEPRECATED qint32 toInt32() const;
QT_DEPRECATED quint32 toUInt32() const;

QT_DEPRECATED QJSValue call(const QJSValue &thisObject = QJSValue(),
const QJSValueList &args = QJSValueList());
Expand Down

0 comments on commit 88cb064

Please sign in to comment.