Skip to content

Commit 4eb2a9e

Browse files
committed
streams: Drop unused CAutoFile
1 parent cde9a4b commit 4eb2a9e

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

src/streams.h

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -505,26 +505,6 @@ class AutoFile
505505
}
506506
};
507507

508-
class CAutoFile : public AutoFile
509-
{
510-
public:
511-
explicit CAutoFile(std::FILE* file, int /*unused*/, std::vector<std::byte> data_xor = {}) : AutoFile{file, std::move(data_xor)} {}
512-
513-
template<typename T>
514-
CAutoFile& operator<<(const T& obj)
515-
{
516-
::Serialize(*this, obj);
517-
return (*this);
518-
}
519-
520-
template<typename T>
521-
CAutoFile& operator>>(T&& obj)
522-
{
523-
::Unserialize(*this, obj);
524-
return (*this);
525-
}
526-
};
527-
528508
/** Wrapper around an AutoFile& that implements a ring buffer to
529509
* deserialize from. It guarantees the ability to rewind a given number of bytes.
530510
*

0 commit comments

Comments
 (0)