leveldbwrapper: Remove unused .Prev(), .SeekToLast() methods

Also, trim trailing whitespace.
This commit is contained in:
Jeff Garzik 2015-10-22 20:49:02 -04:00 committed by Jeff Garzik
parent a09297010e
commit 6ec4b7eb20
2 changed files with 14 additions and 18 deletions

View file

@ -149,6 +149,4 @@ std::string CLevelDBWrapper::GetObfuscateKeyHex() const
CLevelDBIterator::~CLevelDBIterator() { delete piter; }
bool CLevelDBIterator::Valid() { return piter->Valid(); }
void CLevelDBIterator::SeekToFirst() { piter->SeekToFirst(); }
void CLevelDBIterator::SeekToLast() { piter->SeekToLast(); }
void CLevelDBIterator::Next() { piter->Next(); }
void CLevelDBIterator::Prev() { piter->Prev(); }

View file

@ -88,7 +88,6 @@ public:
bool Valid();
void SeekToFirst();
void SeekToLast();
template<typename K> void Seek(const K& key) {
CDataStream ssKey(SER_DISK, CLIENT_VERSION);
@ -99,7 +98,6 @@ public:
}
void Next();
void Prev();
template<typename K> bool GetKey(K& key) {
leveldb::Slice slKey = piter->key();