Commit 22b2b812 authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Removed useless and overly strict asserts from Array::setValue and ArrayView::setValue

parent 2443e7fc
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -674,7 +674,6 @@ setValue( ValueType v,
          IndexType begin,
          IndexType end )
{
   TNL_ASSERT_TRUE( this->getData(), "Attempted to set a value of an empty array." );
   if( end == 0 )
      end = this->getSize();
   Algorithms::MemoryOperations< Device >::set( &this->getData()[ begin ], v, end - begin );
+0 −1
Original line number Diff line number Diff line
@@ -309,7 +309,6 @@ void
ArrayView< Value, Device, Index >::
setValue( ValueType value, IndexType begin, IndexType end )
{
   TNL_ASSERT_GT( size, 0, "Attempted to set value to an empty array view." );
   if( end == 0 )
      end = this->getSize();
   Algorithms::MemoryOperations< Device >::set( &getData()[ begin ], value, end - begin );