diff options
author | Ben Woosley <ben.woosley@gmail.com> | 2018-09-19 02:36:23 -0400 |
---|---|---|
committer | Ben Woosley <ben.woosley@gmail.com> | 2018-09-19 02:36:23 -0400 |
commit | 951a44e9cd6cf2b8058244f3f95181c5ba683fdd (patch) | |
tree | e5675535a8fd371561e3b299f65f1e7ca839bdde /src/wallet/db.h | |
parent | d26278988fbfc71dc558f7b2c60a184e8091450b (diff) |
Drop unused setRange arg to BerkeleyBatch::ReadAtCursor
Diffstat (limited to 'src/wallet/db.h')
-rw-r--r-- | src/wallet/db.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/wallet/db.h b/src/wallet/db.h index 467ed13b45..15577e66f1 100644 --- a/src/wallet/db.h +++ b/src/wallet/db.h @@ -315,20 +315,14 @@ public: return pcursor; } - int ReadAtCursor(Dbc* pcursor, CDataStream& ssKey, CDataStream& ssValue, bool setRange = false) + int ReadAtCursor(Dbc* pcursor, CDataStream& ssKey, CDataStream& ssValue) { // Read at cursor Dbt datKey; - unsigned int fFlags = DB_NEXT; - if (setRange) { - datKey.set_data(ssKey.data()); - datKey.set_size(ssKey.size()); - fFlags = DB_SET_RANGE; - } Dbt datValue; datKey.set_flags(DB_DBT_MALLOC); datValue.set_flags(DB_DBT_MALLOC); - int ret = pcursor->get(&datKey, &datValue, fFlags); + int ret = pcursor->get(&datKey, &datValue, DB_NEXT); if (ret != 0) return ret; else if (datKey.get_data() == nullptr || datValue.get_data() == nullptr) |