summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcostan <costan@google.com>2018-03-12 08:59:43 -0700
committerVictor Costan <pwnall@chromium.org>2018-03-12 09:24:07 -0700
commit7fd7c0072159abbca2660d91fc0667d5c17c4d16 (patch)
treea9de8d1b7e0f3c791ef919d2f8015db629f0dfe2
parent594cc987af2e0af6417c4ac2b947ee8cdad59e5e (diff)
downloadleveldb-7fd7c0072159abbca2660d91fc0667d5c17c4d16.tar.gz
Remove unused function ExtractValueType.
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=188728505
-rw-r--r--db/dbformat.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/db/dbformat.h b/db/dbformat.h
index ea897b1..2e93669 100644
--- a/db/dbformat.h
+++ b/db/dbformat.h
@@ -100,14 +100,6 @@ inline Slice ExtractUserKey(const Slice& internal_key) {
return Slice(internal_key.data(), internal_key.size() - 8);
}
-inline ValueType ExtractValueType(const Slice& internal_key) {
- assert(internal_key.size() >= 8);
- const size_t n = internal_key.size();
- uint64_t num = DecodeFixed64(internal_key.data() + n - 8);
- unsigned char c = num & 0xff;
- return static_cast<ValueType>(c);
-}
-
// A comparator for internal keys that uses a specified comparator for
// the user key portion and breaks ties by decreasing sequence number.
class InternalKeyComparator : public Comparator {