From 3ee04c5ceae6535e922521ed940411a0318fdd3b Mon Sep 17 00:00:00 2001 From: lingbin Date: Mon, 4 Sep 2017 16:10:38 +0800 Subject: fix style and remove unused code --- util/coding.cc | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'util/coding.cc') diff --git a/util/coding.cc b/util/coding.cc index 21e3186..c37b24a 100644 --- a/util/coding.cc +++ b/util/coding.cc @@ -169,16 +169,6 @@ bool GetVarint64(Slice* input, uint64_t* value) { } } -const char* GetLengthPrefixedSlice(const char* p, const char* limit, - Slice* result) { - uint32_t len; - p = GetVarint32Ptr(p, limit, &len); - if (p == NULL) return NULL; - if (p + len > limit) return NULL; - *result = Slice(p, len); - return p + len; -} - bool GetLengthPrefixedSlice(Slice* input, Slice* result) { uint32_t len; if (GetVarint32(input, &len) && -- cgit v1.2.3