DataFlash: Delete unused BufferRead function

Signed-off-by: Daniel Frenzel <dgdanielf@gmail.com>
This commit is contained in:
Daniel Frenzel 2014-08-07 18:06:30 +02:00 committed by Andrew Tridgell
parent dd705e3fdb
commit 74460cd526
2 changed files with 0 additions and 12 deletions

View File

@ -323,18 +323,7 @@ bool DataFlash_APM2::BlockRead(uint8_t BufferNum, uint16_t IntPageAdr, void *pBu
return true;
}
uint8_t DataFlash_APM2::BufferRead (uint8_t BufferNum, uint16_t IntPageAdr)
{
uint8_t tmp;
if (!BlockRead(BufferNum, IntPageAdr, &tmp, 1)) {
return 0;
}
return tmp;
}
// *** END OF INTERNAL FUNCTIONS ***
void DataFlash_APM2::PageErase (uint16_t PageAdr)
{
if (!_sem_take(1))

View File

@ -32,7 +32,6 @@ private:
// the data fits within the page, otherwise it will wrap to the
// start of the page
bool BlockRead(uint8_t BufferNum, uint16_t IntPageAdr, void *pBuffer, uint16_t size);
uint8_t BufferRead (uint8_t BufferNum, uint16_t IntPageAdr);
void PageErase (uint16_t PageAdr);
void BlockErase (uint16_t BlockAdr);