diff options
Diffstat (limited to 'common/array.h')
-rw-r--r-- | common/array.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/common/array.h b/common/array.h index ac8a4b20d7..0b5a65e9bd 100644 --- a/common/array.h +++ b/common/array.h @@ -222,13 +222,7 @@ public: T *old_storage = _storage; _capacity = newCapacity; - // PS2 gcc 3.2.2 can't do "new T[newCapacity]()" but only - // "new T[newCapacity]" -> quick fix until we update tools. - #ifndef __PLAYSTATION2__ - _storage = new T[newCapacity](); - #else _storage = new T[newCapacity]; - #endif assert(_storage); if (old_storage) { @@ -279,13 +273,7 @@ protected: // If there is not enough space, allocate more and // copy old elements over. uint newCapacity = roundUpCapacity(_size + n); - // PS2 gcc 3.2.2 can't do "new T[newCapacity]()" but only - // "new T[newCapacity]" -> quick fix until we update tools. - #ifndef __PLAYSTATION2__ - newStorage = new T[newCapacity](); - #else newStorage = new T[newCapacity]; - #endif assert(newStorage); copy(_storage, _storage + idx, newStorage); pos = newStorage + idx; |