diff options
author | Lars Knoll <lars.knoll@qt.io> | 2018-08-02 16:54:59 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2018-08-02 20:25:55 +0000 |
commit | a88f01364e147d9ea093bf0fdc639b45feef1788 (patch) | |
tree | cf1c49dee57f1c691eeecd633bffd0601256f236 /src/qml/jsruntime/qv4vtable_p.h | |
parent | 0d63c22eee293fe59d7691608deaaf3468045eb3 (diff) |
Implement ObjectIterator using the new iteration mechanism
And with that get rid of the old advanceIterator methods.
Change-Id: I969fa89d25df8992a4b08c8c081b91c92ffdfddd
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4vtable_p.h')
-rw-r--r-- | src/qml/jsruntime/qv4vtable_p.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/qml/jsruntime/qv4vtable_p.h b/src/qml/jsruntime/qv4vtable_p.h index aff8eb83ac..7058991a34 100644 --- a/src/qml/jsruntime/qv4vtable_p.h +++ b/src/qml/jsruntime/qv4vtable_p.h @@ -78,7 +78,6 @@ struct VTable typedef Heap::Object *(*GetPrototypeOf)(const Managed *); typedef bool (*SetPrototypeOf)(Managed *, const Object *); typedef qint64 (*GetLength)(const Managed *m); - typedef void (*AdvanceIterator)(Managed *m, ObjectIterator *it, Value *name, uint *index, Property *p, PropertyAttributes *attributes); typedef OwnPropertyKeyIterator *(*OwnPropertyKeys)(const Object *m); typedef ReturnedValue (*InstanceOf)(const Object *typeObject, const Value &var); @@ -114,7 +113,6 @@ struct VTable GetPrototypeOf getPrototypeOf; SetPrototypeOf setPrototypeOf; GetLength getLength; - AdvanceIterator advanceIterator; OwnPropertyKeys ownPropertyKeys; InstanceOf instanceOf; @@ -139,7 +137,6 @@ protected: static constexpr VTable::GetPrototypeOf virtualGetPrototypeOf = nullptr; static constexpr VTable::SetPrototypeOf virtualSetPrototypeOf = nullptr; static constexpr VTable::GetLength virtualGetLength = nullptr; - static constexpr VTable::AdvanceIterator virtualAdvanceIterator = nullptr; static constexpr VTable::OwnPropertyKeys virtualOwnPropertyKeys = nullptr; static constexpr VTable::InstanceOf virtualInstanceOf = nullptr; @@ -179,7 +176,6 @@ protected: classname::virtualGetPrototypeOf, \ classname::virtualSetPrototypeOf, \ classname::virtualGetLength, \ - classname::virtualAdvanceIterator, \ classname::virtualOwnPropertyKeys, \ classname::virtualInstanceOf, \ \ |