From 74c563f94e4b02779465ead2b2dbce0db59e352a Mon Sep 17 00:00:00 2001 From: KunoiSayami Date: Thu, 17 Feb 2022 14:11:18 +0800 Subject: merge: Merge remote-tracking branch google/main@4fb1468 Signed-off-by: KunoiSayami --- 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 df3fa10..a8f8af8 100644 --- a/util/coding.cc +++ b/util/coding.cc @@ -142,16 +142,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 == nullptr) return nullptr; - if (p + len > limit) return nullptr; - *result = Slice(p, len); - return p + len; -} - bool GetLengthPrefixedSlice(Slice* input, Slice* result) { uint32_t len; if (GetVarint32(input, &len) && input->size() >= len) { -- cgit v1.3.1