summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Jean-Philippe Halimi <jean-philippe.halimi@intel.com> 2016-02-18 16:46:37 +0100
committer Jean-Philippe Halimi <jean-philippe.halimi@intel.com> 2016-02-18 16:46:37 +0100
commit0ae0e3c8a501befa88e479dd5ee59819b350be3d (patch)
tree4709e2eb44198111aa1f7d43b16154a69d1882f4
parent99da8cd8818e015b21d1c2af73ac40749698c930 (diff)
Remove useless map in SwapAllocator
This patch removes a map in SwapAllocator because there is no need for it. Change-Id: Ifbc641d0d919eaaae7994836dfe423883046c61f Signed-off-by: Jean-Philippe Halimi <jean-philippe.halimi@intel.com>
-rw-r--r--compiler/utils/swap_space.cc1
-rw-r--r--compiler/utils/swap_space.h1
2 files changed, 0 insertions, 2 deletions
diff --git a/compiler/utils/swap_space.cc b/compiler/utils/swap_space.cc
index 244a5fedbe..1a8f567aa1 100644
--- a/compiler/utils/swap_space.cc
+++ b/compiler/utils/swap_space.cc
@@ -152,7 +152,6 @@ SwapSpace::SpaceChunk SwapSpace::NewFileChunk(size_t min_size) {
}
size_ += next_part;
SpaceChunk new_chunk = {ptr, next_part};
- maps_.push_back(new_chunk);
return new_chunk;
#else
UNUSED(min_size, kMininumMapSize);
diff --git a/compiler/utils/swap_space.h b/compiler/utils/swap_space.h
index b659f1d3c7..bf06675d72 100644
--- a/compiler/utils/swap_space.h
+++ b/compiler/utils/swap_space.h
@@ -85,7 +85,6 @@ class SwapSpace {
int fd_;
size_t size_;
- std::list<SpaceChunk> maps_;
// NOTE: Boost.Bimap would be useful for the two following members.