diff options
author | Andrew Chow <achow101-github@achow101.com> | 2019-03-13 00:44:52 -0400 |
---|---|---|
committer | Andrew Chow <achow101-github@achow101.com> | 2019-07-22 13:03:28 -0400 |
commit | 35e60e790f2cd602d1bdd0be835d27f0ba37efa9 (patch) | |
tree | ead3478f25e1b738f3441a247f1f91053dc1696f /src/wallet/db.h | |
parent | b3d4f6c9619142948ab3d53551b4f3c0d7d73bde (diff) |
Remove ReadVersion and WriteVersion
The "version" record that these functions read and write are not
used anywhere in the code except for one place. There is no reason
to expose these functions publicly. Furthermore, this avoids potential
confusion as developers may mistake these functions for actually
reading and writing the wallet version when they do not.
Diffstat (limited to 'src/wallet/db.h')
-rw-r--r-- | src/wallet/db.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/wallet/db.h b/src/wallet/db.h index 9df965305a..671bb7e6c3 100644 --- a/src/wallet/db.h +++ b/src/wallet/db.h @@ -396,17 +396,6 @@ public: return (ret == 0); } - bool ReadVersion(int& nVersion) - { - nVersion = 0; - return Read(std::string("version"), nVersion); - } - - bool WriteVersion(int nVersion) - { - return Write(std::string("version"), nVersion); - } - bool static Rewrite(BerkeleyDatabase& database, const char* pszSkip = nullptr); }; |