Get rid of StreamBuffer::read_entire_contents and StreamBuffer::hash

This commit is contained in:
2023-10-18 14:32:12 -04:00
parent 3e8aa31a95
commit 6c2a27b274
4 changed files with 2 additions and 22 deletions

View File

@@ -336,10 +336,6 @@ public:
void write_hashvalue(const util::HashValue &hv);
util::HashValue read_hashvalue();
// Read the entire contents of the buffer as a string.
//
eng::string read_entire_contents();
// Overwrite values previously written to the buffer.
//
// See the comment at the top of this file for an explanation.
@@ -382,9 +378,6 @@ public:
// Compare the contents of this streambuffer to another one.
bool contents_equal(const StreamBuffer *sb) const;
// Calculate a noncryptographic but good hash of what's in the buffer.
util::HashValue hash() const;
// Throw a StreamCorruption exception.
void raise_truncated() { throw StreamCorruption(); }
void raise_string_too_long() { throw StreamCorruption(); }