aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4scopedvalue_p.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2014-05-08 08:29:53 +0200
committerSimon Hausmann <simon.hausmann@digia.com>2014-07-22 13:49:13 +0200
commit4e11a7a9e8ba49474bfdbdb9f4c565ebd39de595 (patch)
treed72598dfe8e6a2b12ef0ffe344b5dffff176fcc5 /src/qml/jsruntime/qv4scopedvalue_p.h
parent57f08e59fcc289742fe88ee45b82b52b26dbf945 (diff)
Get rid of ManagedRef
Change-Id: I6883fc5d8c5a13f1e61966c9f6e7bf0bedbfbc8a Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/jsruntime/qv4scopedvalue_p.h')
-rw-r--r--src/qml/jsruntime/qv4scopedvalue_p.h22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/qml/jsruntime/qv4scopedvalue_p.h b/src/qml/jsruntime/qv4scopedvalue_p.h
index 13a1f33610..fc339904e9 100644
--- a/src/qml/jsruntime/qv4scopedvalue_p.h
+++ b/src/qml/jsruntime/qv4scopedvalue_p.h
@@ -522,22 +522,12 @@ PersistentValue::PersistentValue(Returned<T> *obj)
{
}
-inline PersistentValue::PersistentValue(const ManagedRef obj)
- : d(new PersistentValuePrivate(obj.asReturnedValue()))
-{
-}
-
template<typename T>
inline PersistentValue &PersistentValue::operator=(Returned<T> *obj)
{
return operator=(QV4::Value::fromManaged(obj->getPointer()).asReturnedValue());
}
-inline PersistentValue &PersistentValue::operator=(const ManagedRef obj)
-{
- return operator=(obj.asReturnedValue());
-}
-
inline PersistentValue &PersistentValue::operator=(const ScopedValue &other)
{
return operator=(other.asReturnedValue());
@@ -578,18 +568,6 @@ inline ValueRef &ValueRef::operator=(const ScopedValue &o)
return *this;
}
-
-inline Value *extractValuePointer(const ScopedValue &v)
-{
- return v.ptr;
-}
-
-template<typename T>
-Value *extractValuePointer(const Scoped<T> &v)
-{
- return v.ptr;
-}
-
struct ScopedProperty
{
ScopedProperty(Scope &scope)