Revert "[Tizen] Add assertion to Vector"
authorTaehyub Kim <taehyub.kim@samsung.com>
Mon, 8 Nov 2021 05:38:44 +0000 (14:38 +0900)
committerTaehyub Kim <taehyub.kim@samsung.com>
Mon, 8 Nov 2021 05:38:44 +0000 (14:38 +0900)
This reverts commit a8b6d8e18765116c9f6d36c0baaad1d38349ddd2.

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

index 4d90e2e..fd4565e 100644 (file)
@@ -19,7 +19,6 @@
  */
 
 // EXTERNAL INCLUDES
-#include <assert.h>
 #include <algorithm>
 #include <cstddef>
 #include <cstdint> // uint32_t
@@ -549,8 +548,7 @@ public: // API
   const ItemType& operator[](SizeType index) const
   {
     DALI_ASSERT_VECTOR(VectorBase::mData && "Vector is empty");
-    assert(index < VectorBase::Count());
-
+    DALI_ASSERT_VECTOR(index < VectorBase::Count() && "Index out of bounds");
     ItemType* address = reinterpret_cast<ItemType*>(VectorBase::mData);
     address += index;
     return *address;