Revert "[Tizen] Add assertion to Vector"
authortscholb <scholb.kim@samsung.com>
Mon, 1 Nov 2021 07:15:33 +0000 (16:15 +0900)
committertscholb <scholb.kim@samsung.com>
Mon, 1 Nov 2021 07:15:33 +0000 (16:15 +0900)
This reverts commit a3f2bd06b1b30eebd62f946b5d7e5888ffec018e.

dali/public-api/common/dali-vector.h

index 1e8d230..fd4565e 100644 (file)
@@ -19,7 +19,6 @@
  */
 
 // EXTERNAL INCLUDES
-#include <assert.h>
 #include <algorithm>
 #include <cstddef>
 #include <cstdint> // uint32_t
@@ -550,10 +549,6 @@ public: // API
   {
     DALI_ASSERT_VECTOR(VectorBase::mData && "Vector is empty");
     DALI_ASSERT_VECTOR(index < VectorBase::Count() && "Index out of bounds");
-    if(index >= VectorBase::Count())
-    {
-      assert(0);
-    }
     ItemType* address = reinterpret_cast<ItemType*>(VectorBase::mData);
     address += index;
     return *address;