From d8b67f49d7f8ae291cd4fa901b2d3767137704e7 Mon Sep 17 00:00:00 2001 From: Amin Hassani Date: Wed, 6 Dec 2017 13:47:52 -0800 Subject: update_engine: Remove the duplicate BlocksInExtents This patch removes the duplicate BlocksInExtents from extent_utils.h and fixes the remainder of the code to reflect this change. BUG=none TEST=unittests pass; Change-Id: I76f5106f75072b20cd8f41f081b2f2b07aeac9a8 Reviewed-on: https://chromium-review.googlesource.com/812009 Commit-Ready: Amin Hassani Tested-by: Amin Hassani Reviewed-by: Ben Chan Reviewed-by: Alex Deymo Reviewed-by: Sen Jiang --- payload_generator/extent_utils.cc | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'payload_generator/extent_utils.cc') diff --git a/payload_generator/extent_utils.cc b/payload_generator/extent_utils.cc index 89ccca27..47073f9a 100644 --- a/payload_generator/extent_utils.cc +++ b/payload_generator/extent_utils.cc @@ -53,16 +53,6 @@ void AppendBlockToExtents(vector* extents, uint64_t block) { extents->push_back(new_extent); } -Extent GetElement(const vector& collection, size_t index) { - return collection[index]; -} - -Extent GetElement( - const google::protobuf::RepeatedPtrField& collection, - size_t index) { - return collection.Get(index); -} - void ExtendExtents( google::protobuf::RepeatedPtrField* extents, const google::protobuf::RepeatedPtrField& extents_to_add) { -- cgit v1.2.3