[Tizen] Remove throwing exception 76/265676/1
authorHeeyong Song <heeyong.song@samsung.com>
Wed, 27 Oct 2021 05:06:40 +0000 (14:06 +0900)
committerHeeyong Song <heeyong.song@samsung.com>
Wed, 27 Oct 2021 05:06:40 +0000 (14:06 +0900)
Change-Id: I9c186d07dee25923d68caf39e67eb771d1cb74e4

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

index 2fea460..4d90e2e 100644 (file)
@@ -549,12 +549,8 @@ public: // API
   const ItemType& operator[](SizeType index) const
   {
     DALI_ASSERT_VECTOR(VectorBase::mData && "Vector is empty");
-    DALI_ASSERT_VECTOR(index < VectorBase::Count() && "Index out of bounds");
-    if(index >= VectorBase::Count())
-    {
-      // Assert to debug
-      assert(0);
-    }
+    assert(index < VectorBase::Count());
+
     ItemType* address = reinterpret_cast<ItemType*>(VectorBase::mData);
     address += index;
     return *address;