mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-22 15:04:44 +01:00
streams: Remove unused CAutoFile::GetVersion
This commit is contained in:
parent
e63f643079
commit
c72ddf04db
1 changed files with 1 additions and 5 deletions
|
@ -507,12 +507,8 @@ public:
|
||||||
|
|
||||||
class CAutoFile : public AutoFile
|
class CAutoFile : public AutoFile
|
||||||
{
|
{
|
||||||
private:
|
|
||||||
const int nVersion;
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit CAutoFile(std::FILE* file, int version, std::vector<std::byte> data_xor = {}) : AutoFile{file, std::move(data_xor)}, nVersion{version} {}
|
explicit CAutoFile(std::FILE* file, int /*unused*/, std::vector<std::byte> data_xor = {}) : AutoFile{file, std::move(data_xor)} {}
|
||||||
int GetVersion() const { return nVersion; }
|
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
CAutoFile& operator<<(const T& obj)
|
CAutoFile& operator<<(const T& obj)
|
||||||
|
|
Loading…
Add table
Reference in a new issue