summaryrefslogtreecommitdiff
path: root/src/mongo/util/bufreader.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/util/bufreader.h')
-rw-r--r--src/mongo/util/bufreader.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/mongo/util/bufreader.h b/src/mongo/util/bufreader.h
index b8d931add9a..8c30070bada 100644
--- a/src/mongo/util/bufreader.h
+++ b/src/mongo/util/bufreader.h
@@ -106,11 +106,6 @@ public:
invariant(_pos >= _start);
}
- /** back up to beginging of buffer */
- void rewindToStart() {
- _pos = _start;
- }
-
/** return current position pointer, and advance by len */
const void* skip(unsigned len) {
ConstDataRangeCursor cdrc(_pos, _end);
@@ -129,14 +124,6 @@ public:
s = readCStr().toString();
}
- /**
- * Return a view of the next len bytes and advance by len.
- */
- StringData readBytes(size_t len) {
- // Note: the call to skip() includes a check that at least 'len' bytes remain in the buffer.
- return StringData(reinterpret_cast<const char*>(skip(len)), len);
- }
-
const void* pos() {
return _pos;
}