diff options
author | Anthony Towns <aj@erisian.com.au> | 2023-11-17 23:58:43 +1000 |
---|---|---|
committer | Anthony Towns <aj@erisian.com.au> | 2023-11-18 00:15:25 +1000 |
commit | c72ddf04db95a94e91939d46d13ab6a46fefb4be (patch) | |
tree | 6cb85b0ca86a3eb3dbd50c523e19e041832fb3f3 /src | |
parent | e63f64307929ad398a23ecfaabc3664270883155 (diff) | |
download | bitcoin-c72ddf04db95a94e91939d46d13ab6a46fefb4be.tar.xz |
streams: Remove unused CAutoFile::GetVersion
Diffstat (limited to 'src')
-rw-r--r-- | src/streams.h | 6 |
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) |