BAN: Span remove unnecessary asserts
This commit is contained in:
parent
7a66eb44d4
commit
49984f2844
|
|
@ -69,7 +69,6 @@ namespace BAN
|
||||||
|
|
||||||
value_type* data() const
|
value_type* data() const
|
||||||
{
|
{
|
||||||
ASSERT(m_data);
|
|
||||||
return m_data;
|
return m_data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -84,7 +83,6 @@ namespace BAN
|
||||||
|
|
||||||
Span slice(size_type start, size_type length = ~size_type(0)) const
|
Span slice(size_type start, size_type length = ~size_type(0)) const
|
||||||
{
|
{
|
||||||
ASSERT(m_data);
|
|
||||||
ASSERT(start <= m_size);
|
ASSERT(start <= m_size);
|
||||||
if (length == ~size_type(0))
|
if (length == ~size_type(0))
|
||||||
length = m_size - start;
|
length = m_size - start;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue