Skip to content
This repository was archived by the owner on Jan 21, 2026. It is now read-only.

Commit 6f01397

Browse files
committed
PinnableSlice::remove_prefix() mark delete
1 parent 398dcc1 commit 6f01397

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

include/rocksdb/slice.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ class PinnableSlice : public Slice, public Cleanable {
233233
}
234234
}
235235

236+
#if 0
236237
void remove_prefix(size_t n) {
237238
assert(n <= size());
238239
if (pinned_) {
@@ -243,6 +244,9 @@ class PinnableSlice : public Slice, public Cleanable {
243244
PinSelf();
244245
}
245246
}
247+
#else
248+
void remove_prefix(size_t) = delete;
249+
#endif
246250

247251
void Reset() {
248252
Cleanable::Reset();

0 commit comments

Comments
 (0)