From 40c86ac058754ffa3f1f64c5f5e294be21de289a Mon Sep 17 00:00:00 2001 From: DarthArgus Date: Mon, 12 Oct 2015 19:03:19 -0500 Subject: [PATCH] remove unused template that causes clang to die --- .../sharedFoundation/src/shared/ArrayList.h | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) 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) {