Get rid of StreamBuffer::read_entire_contents and StreamBuffer::hash
This commit is contained in:
@@ -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(); }
|
||||
|
||||
Reference in New Issue
Block a user