mirror of
https://github.com/SWG-Source/src.git
synced 2026-07-28 22:15:49 -04:00
remove unused template that causes clang to die
This commit is contained in:
@@ -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<T>::addIfNotExist (const T& newElement)
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
|
||||
template <class T>
|
||||
inline int ArrayList<T>::findOrAdd (const T& newElement)
|
||||
{
|
||||
if (existsInList (newElement, index))
|
||||
return index;
|
||||
|
||||
add (newElement);
|
||||
|
||||
return getNumberOfElements () - 1;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
|
||||
template <class T>
|
||||
inline void ArrayList<T>::insert (int index, const T& newElement)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user