From 9f2b553e0536450af092439962fd0bd4dab61382 Mon Sep 17 00:00:00 2001 From: VladimirMangos Date: Tue, 4 Nov 2008 22:20:50 +0300 Subject: [PATCH] Restore mangos build at Unix/Linux by droping broken by me in prev my commit unused code. --- src/shared/vmap/AABSPTree.h | 74 ------------------------------------- 1 file changed, 74 deletions(-) diff --git a/src/shared/vmap/AABSPTree.h b/src/shared/vmap/AABSPTree.h index 7a5488eb9..ad615e58c 100644 --- a/src/shared/vmap/AABSPTree.h +++ b/src/shared/vmap/AABSPTree.h @@ -1538,80 +1538,6 @@ public: members.append(temp[i].handle->value); } } - - - /** - C++ STL style iterator variable. See begin(). - Overloads the -> (dereference) operator, so this acts like a pointer - to the current member. - */ - class Iterator { - private: - friend class AABSPTree; - - Iterator(const typename Table::Iterator& it) : it(it) {} - - public: - - inline bool operator!=(const Iterator& other) const { - return !(*this == other); - } - - bool operator==(const Iterator& other) const { - return it == other.it; - } - - /** - Pre increment. - */ - Iterator& operator++() { - ++it; - return *this; - } - - private: - /** - Post increment (slower than preincrement). Intentionally unimplemented to prevent slow code. - */ - Iterator operator++(int);/* { - Iterator old = *this; - ++(*this); - return old; - }*/ - public: - - const T& operator*() const { - return it->key.handle->value; - } - - T* operator->() const { - return &(it->key.handle->value); - } - - operator T*() const { - return &(it->key.handle->value); - } - }; - - - /** - C++ STL style iterator method. Returns the first member. - Use preincrement (++entry) to get to the next element (iteration - order is arbitrary). - Do not modify the set while iterating. - */ - Iterator begin() const { - return Iterator(memberTable.begin()); - } - - - /** - C++ STL style iterator method. Returns one after the last iterator - element. - */ - Iterator end() const { - return Iterator(memberTable.end()); - } }; }