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>
diff --git a/compiler/utils/swap_space.cc b/compiler/utils/swap_space.cc
index 244a5fe..1a8f567 100644
--- a/compiler/utils/swap_space.cc
+++ b/compiler/utils/swap_space.cc
@@ -152,7 +152,6 @@
}
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 b659f1d..bf06675 100644
--- a/compiler/utils/swap_space.h
+++ b/compiler/utils/swap_space.h
@@ -85,7 +85,6 @@
int fd_;
size_t size_;
- std::list<SpaceChunk> maps_;
// NOTE: Boost.Bimap would be useful for the two following members.