Skip to content

Commit 1bfa6d0

Browse files
author
Seppo Takalo
committed
HeapBlockDevice: Don't assert on const functions
1 parent 1dd0b1b commit 1bfa6d0

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

features/storage/blockdevice/HeapBlockDevice.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,31 +87,26 @@ int HeapBlockDevice::deinit()
8787

8888
bd_size_t HeapBlockDevice::get_read_size() const
8989
{
90-
MBED_ASSERT(_blocks != NULL);
9190
return _read_size;
9291
}
9392

9493
bd_size_t HeapBlockDevice::get_program_size() const
9594
{
96-
MBED_ASSERT(_blocks != NULL);
9795
return _program_size;
9896
}
9997

10098
bd_size_t HeapBlockDevice::get_erase_size() const
10199
{
102-
MBED_ASSERT(_blocks != NULL);
103100
return _erase_size;
104101
}
105102

106103
bd_size_t HeapBlockDevice::get_erase_size(bd_addr_t addr) const
107104
{
108-
MBED_ASSERT(_blocks != NULL);
109105
return _erase_size;
110106
}
111107

112108
bd_size_t HeapBlockDevice::size() const
113109
{
114-
MBED_ASSERT(_blocks != NULL);
115110
return _count * _erase_size;
116111
}
117112

@@ -193,4 +188,3 @@ const char *HeapBlockDevice::get_type() const
193188
}
194189

195190
} // namespace mbed
196-

0 commit comments

Comments
 (0)