HeapBlockDevice: Don't assert on const functions

pull/11986/head
Seppo Takalo 2019-11-25 11:29:11 +02:00
parent 6105634bb0
commit 191d3444bb
1 changed files with 0 additions and 6 deletions

View File

@ -87,31 +87,26 @@ int HeapBlockDevice::deinit()
bd_size_t HeapBlockDevice::get_read_size() const
{
MBED_ASSERT(_blocks != NULL);
return _read_size;
}
bd_size_t HeapBlockDevice::get_program_size() const
{
MBED_ASSERT(_blocks != NULL);
return _program_size;
}
bd_size_t HeapBlockDevice::get_erase_size() const
{
MBED_ASSERT(_blocks != NULL);
return _erase_size;
}
bd_size_t HeapBlockDevice::get_erase_size(bd_addr_t addr) const
{
MBED_ASSERT(_blocks != NULL);
return _erase_size;
}
bd_size_t HeapBlockDevice::size() const
{
MBED_ASSERT(_blocks != NULL);
return _count * _erase_size;
}
@ -193,4 +188,3 @@ const char *HeapBlockDevice::get_type() const
}
} // namespace mbed