Browse Source

DataFlash: removed more unusued BufferRead functions

mission-4.1.18
Andrew Tridgell 11 years ago
parent
commit
47655ee78e
  1. 4
      libraries/DataFlash/DataFlash_Empty.cpp
  2. 1
      libraries/DataFlash/DataFlash_Empty.h
  3. 5
      libraries/DataFlash/DataFlash_SITL.cpp
  4. 1
      libraries/DataFlash/DataFlash_SITL.h

4
libraries/DataFlash/DataFlash_Empty.cpp

@ -60,10 +60,6 @@ void DataFlash_Empty::BufferWrite (unsigned char BufferNum, @@ -60,10 +60,6 @@ void DataFlash_Empty::BufferWrite (unsigned char BufferNum,
uint16_t IntPageAdr, unsigned char Data)
{ }
unsigned char DataFlash_Empty::BufferRead (unsigned char BufferNum,
uint16_t IntPageAdr)
{ return 0; }
void DataFlash_Empty::BlockWrite(uint8_t BufferNum, uint16_t IntPageAdr,
const void *pHeader, uint8_t hdr_size,
const void *pBuffer, uint16_t size)

1
libraries/DataFlash/DataFlash_Empty.h

@ -13,7 +13,6 @@ class DataFlash_Empty : public DataFlash_Block @@ -13,7 +13,6 @@ class DataFlash_Empty : public DataFlash_Block
{
private:
//Methods
uint8_t BufferRead (uint8_t BufferNum, uint16_t IntPageAdr);
void BufferWrite (uint8_t BufferNum, uint16_t IntPageAdr, uint8_t Data);
void BufferToPage (uint8_t BufferNum, uint16_t PageAdr, uint8_t wait);
void PageToBuffer(uint8_t BufferNum, uint16_t PageAdr);

5
libraries/DataFlash/DataFlash_SITL.cpp

@ -119,11 +119,6 @@ void DataFlash_SITL::BlockWrite(uint8_t BufferNum, uint16_t IntPageAdr, @@ -119,11 +119,6 @@ void DataFlash_SITL::BlockWrite(uint8_t BufferNum, uint16_t IntPageAdr,
size);
}
unsigned char DataFlash_SITL::BufferRead (unsigned char BufferNum, uint16_t IntPageAdr)
{
return (unsigned char)buffer[BufferNum][IntPageAdr];
}
// read size bytes of data to a page. The caller must ensure that
// the data fits within the page, otherwise it will wrap to the
// start of the page

1
libraries/DataFlash/DataFlash_SITL.h

@ -13,7 +13,6 @@ class DataFlash_SITL : public DataFlash_Block @@ -13,7 +13,6 @@ class DataFlash_SITL : public DataFlash_Block
{
private:
//Methods
uint8_t BufferRead (uint8_t BufferNum, uint16_t IntPageAdr);
void BufferWrite (uint8_t BufferNum, uint16_t IntPageAdr, uint8_t Data);
void BufferToPage (uint8_t BufferNum, uint16_t PageAdr, uint8_t wait);
void PageToBuffer(uint8_t BufferNum, uint16_t PageAdr);

Loading…
Cancel
Save