aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4value_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/jsruntime/qv4value_p.h')
-rw-r--r--src/qml/jsruntime/qv4value_p.h32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/qml/jsruntime/qv4value_p.h b/src/qml/jsruntime/qv4value_p.h
index ac0a52f7a8..7c9ca9c0bf 100644
--- a/src/qml/jsruntime/qv4value_p.h
+++ b/src/qml/jsruntime/qv4value_p.h
@@ -465,8 +465,6 @@ public:
return static_cast<const T *>(managed());
}
- inline uint asArrayIndex() const;
- inline bool asArrayIndex(uint &idx) const;
#ifndef V4_BOOTSTRAP
uint asArrayLength(bool *ok) const;
#endif
@@ -553,36 +551,6 @@ inline double Value::toNumber() const
return toNumberImpl();
}
-
-#ifndef V4_BOOTSTRAP
-inline uint Value::asArrayIndex() const
-{
- if (Q_LIKELY(isPositiveInt())) {
- return (uint)int_32();
- }
- if (Q_UNLIKELY(!isDouble()))
- return UINT_MAX;
- double d = doubleValue();
- uint idx = (uint)d;
- if (idx == d)
- return idx;
- return UINT_MAX;
-}
-
-inline bool Value::asArrayIndex(uint &idx) const
-{
- if (Q_LIKELY(isPositiveInt())) {
- idx = (uint)int_32();
- return true;
- }
- if (Q_UNLIKELY(!isDouble()))
- return false;
- double d = doubleValue();
- idx = (uint)d;
- return (idx == d && idx != UINT_MAX);
-}
-#endif
-
inline
ReturnedValue Heap::Base::asReturnedValue() const
{