diff --git a/engine/shared/library/sharedFoundation/src/shared/ArrayList.h b/engine/shared/library/sharedFoundation/src/shared/ArrayList.h index ab3e2dd6..e70ff196 100644 --- a/engine/shared/library/sharedFoundation/src/shared/ArrayList.h +++ b/engine/shared/library/sharedFoundation/src/shared/ArrayList.h @@ -41,8 +41,7 @@ public: void add (const T& newElement); void addIfNotExist (const T& newElement); void allocateNext (void); - int findOrAdd (const T& newElement); - + void insert (int index, const T& newElement); // remove an item from the list @@ -244,19 +243,6 @@ inline void ArrayList::addIfNotExist (const T& newElement) //------------------------------------------------------------------- -template -inline int ArrayList::findOrAdd (const T& newElement) -{ - if (existsInList (newElement, index)) - return index; - - add (newElement); - - return getNumberOfElements () - 1; -} - -//------------------------------------------------------------------- - template inline void ArrayList::insert (int index, const T& newElement) {