aboutsummaryrefslogtreecommitdiff
path: root/src/leveldbwrapper.h
diff options
context:
space:
mode:
authorJeff Garzik <jeff@bloq.com>2015-10-22 20:49:02 -0400
committerJeff Garzik <jgarzik@pobox.com>2015-10-22 20:49:02 -0400
commit6ec4b7eb20abf05dd6e3c0885644616a2c2acfd7 (patch)
treeca06e01a98dcf368d18ac796498a9d581f9ef308 /src/leveldbwrapper.h
parenta09297010e171af28a7a3fcad65a4e0aefea53ba (diff)
leveldbwrapper: Remove unused .Prev(), .SeekToLast() methods
Also, trim trailing whitespace.
Diffstat (limited to 'src/leveldbwrapper.h')
-rw-r--r--src/leveldbwrapper.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/leveldbwrapper.h b/src/leveldbwrapper.h
index 60101e18cc..0effea407a 100644
--- a/src/leveldbwrapper.h
+++ b/src/leveldbwrapper.h
@@ -68,7 +68,7 @@ public:
batch.Delete(slKey);
}
};
-
+
class CLevelDBIterator
{
private:
@@ -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();
@@ -133,7 +131,7 @@ public:
}
};
-
+
class CLevelDBWrapper
{
private:
@@ -163,10 +161,10 @@ private:
//! the key under which the obfuscation key is stored
static const std::string OBFUSCATE_KEY_KEY;
-
+
//! the length of the obfuscate key in number of bytes
static const unsigned int OBFUSCATE_KEY_NUM_BYTES;
-
+
std::vector<unsigned char> CreateObfuscateKey() const;
public:
@@ -256,7 +254,7 @@ public:
return WriteBatch(batch, true);
}
- CLevelDBIterator *NewIterator()
+ CLevelDBIterator *NewIterator()
{
return new CLevelDBIterator(pdb->NewIterator(iteroptions), &obfuscate_key);
}