Skip to content

Commit 50e8a9c

Browse files
committed
Remove unused ReadVersion and WriteVersion
CDataStream and CAutoFile had a ReadVersion and WriteVersion method that was never used. Remove them.
1 parent 1253f86 commit 50e8a9c

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/streams.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -254,8 +254,6 @@ class CDataStream
254254
int GetType() { return nType; }
255255
void SetVersion(int n) { nVersion = n; }
256256
int GetVersion() { return nVersion; }
257-
void ReadVersion() { *this >> nVersion; }
258-
void WriteVersion() { *this << nVersion; }
259257

260258
CDataStream& read(char* pch, size_t nSize)
261259
{
@@ -434,8 +432,6 @@ class CAutoFile
434432
int GetType() { return nType; }
435433
void SetVersion(int n) { nVersion = n; }
436434
int GetVersion() { return nVersion; }
437-
void ReadVersion() { *this >> nVersion; }
438-
void WriteVersion() { *this << nVersion; }
439435

440436
CAutoFile& read(char* pch, size_t nSize)
441437
{

0 commit comments

Comments
 (0)