diff options
author | Lars Knoll <lars.knoll@theqtcompany.com> | 2015-01-12 13:48:47 +0100 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2015-01-12 14:52:52 +0100 |
commit | 3373f67d47a3f0e2a191dec4d7d97cc0a1b02e2d (patch) | |
tree | c714c58f2daa193f5ad932f5853a409ae37fc618 /src/qml/jsruntime/qv4string_p.h | |
parent | 447844aa25754db7e868469de4537af4331709ac (diff) |
QV4::String is not an Object
Remove all the code related to Object vtable's in here. This code
never got called anyway, as it would require casting to an Object
to call it (which would of course fail for Strings).
Change-Id: Ib62bb1b10999304cb65f6030d805698b9f60700d
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/jsruntime/qv4string_p.h')
-rw-r--r-- | src/qml/jsruntime/qv4string_p.h | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/qml/jsruntime/qv4string_p.h b/src/qml/jsruntime/qv4string_p.h index 3af945fc1d..e70af2462a 100644 --- a/src/qml/jsruntime/qv4string_p.h +++ b/src/qml/jsruntime/qv4string_p.h @@ -116,8 +116,7 @@ private: struct Q_QML_PRIVATE_EXPORT String : public Managed { #ifndef V4_BOOTSTRAP - // ### FIXME: Should this be a V4_OBJECT - V4_OBJECT2(String, Managed) + V4_MANAGED(String, Managed) Q_MANAGED_TYPE(String) V4_NEEDS_DESTROY enum { @@ -177,14 +176,6 @@ struct Q_QML_PRIVATE_EXPORT String : public Managed { protected: static void markObjects(Heap::Base *that, ExecutionEngine *e); - static ReturnedValue get(Managed *m, String *name, bool *hasProperty); - static ReturnedValue getIndexed(Managed *m, uint index, bool *hasProperty); - static void put(Managed *m, String *name, const ValueRef value); - static void putIndexed(Managed *m, uint index, const ValueRef value); - static PropertyAttributes query(const Managed *m, String *name); - static PropertyAttributes queryIndexed(const Managed *m, uint index); - static bool deleteProperty(Managed *, String *); - static bool deleteIndexedProperty(Managed *m, uint index); static bool isEqualTo(Managed *that, Managed *o); static uint getLength(const Managed *m); #endif |