From 35e60e790f2cd602d1bdd0be835d27f0ba37efa9 Mon Sep 17 00:00:00 2001 From: Andrew Chow Date: Wed, 13 Mar 2019 00:44:52 -0400 Subject: 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. --- src/wallet/db.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/wallet/db.cpp') diff --git a/src/wallet/db.cpp b/src/wallet/db.cpp index 99d880daa..41c157c5c 100644 --- a/src/wallet/db.cpp +++ b/src/wallet/db.cpp @@ -587,7 +587,7 @@ BerkeleyBatch::BerkeleyBatch(BerkeleyDatabase& database, const char* pszMode, bo if (fCreate && !Exists(std::string("version"))) { bool fTmp = fReadOnly; fReadOnly = false; - WriteVersion(CLIENT_VERSION); + Write(std::string("version"), CLIENT_VERSION); fReadOnly = fTmp; } } -- cgit v1.2.3