Browse Source

Remove unused ReadVersion and WriteVersion

CDataStream and CAutoFile had a ReadVersion and WriteVersion method
that was never used. Remove them.
0.14
Pieter Wuille 8 years ago
parent
commit
50e8a9ccd7
  1. 4
      src/streams.h

4
src/streams.h

@ -254,8 +254,6 @@ public:
int GetType() { return nType; } int GetType() { return nType; }
void SetVersion(int n) { nVersion = n; } void SetVersion(int n) { nVersion = n; }
int GetVersion() { return nVersion; } int GetVersion() { return nVersion; }
void ReadVersion() { *this >> nVersion; }
void WriteVersion() { *this << nVersion; }
CDataStream& read(char* pch, size_t nSize) CDataStream& read(char* pch, size_t nSize)
{ {
@ -434,8 +432,6 @@ public:
int GetType() { return nType; } int GetType() { return nType; }
void SetVersion(int n) { nVersion = n; } void SetVersion(int n) { nVersion = n; }
int GetVersion() { return nVersion; } int GetVersion() { return nVersion; }
void ReadVersion() { *this >> nVersion; }
void WriteVersion() { *this << nVersion; }
CAutoFile& read(char* pch, size_t nSize) CAutoFile& read(char* pch, size_t nSize)
{ {

Loading…
Cancel
Save