aboutsummaryrefslogtreecommitdiff
path: root/src/streams.h
diff options
context:
space:
mode:
authorAnthony Towns <aj@erisian.com.au>2023-11-17 23:58:43 +1000
committerAnthony Towns <aj@erisian.com.au>2023-11-18 00:15:25 +1000
commitc72ddf04db95a94e91939d46d13ab6a46fefb4be (patch)
tree6cb85b0ca86a3eb3dbd50c523e19e041832fb3f3 /src/streams.h
parente63f64307929ad398a23ecfaabc3664270883155 (diff)
downloadbitcoin-c72ddf04db95a94e91939d46d13ab6a46fefb4be.tar.xz
streams: Remove unused CAutoFile::GetVersion
Diffstat (limited to 'src/streams.h')
-rw-r--r--src/streams.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/streams.h b/src/streams.h
index e7779d5bbd..794a0dd6b7 100644
--- a/src/streams.h
+++ b/src/streams.h
@@ -507,12 +507,8 @@ public:
class CAutoFile : public AutoFile
{
-private:
- const int nVersion;
-
public:
- explicit CAutoFile(std::FILE* file, int version, std::vector<std::byte> data_xor = {}) : AutoFile{file, std::move(data_xor)}, nVersion{version} {}
- int GetVersion() const { return nVersion; }
+ explicit CAutoFile(std::FILE* file, int /*unused*/, std::vector<std::byte> data_xor = {}) : AutoFile{file, std::move(data_xor)} {}
template<typename T>
CAutoFile& operator<<(const T& obj)