Fix unused collector_type_ variable
Test: build
Bug: 197240255
Change-Id: I321f47b1a037da61df2bef1c4b08bdbe23efec0d
diff --git a/runtime/parsed_options.cc b/runtime/parsed_options.cc
index f27947e..f973ebd 100644
--- a/runtime/parsed_options.cc
+++ b/runtime/parsed_options.cc
@@ -699,18 +699,9 @@
// If not set, background collector type defaults to homogeneous compaction.
// If not low memory mode, semispace otherwise.
- gc::CollectorType background_collector_type_;
- gc::CollectorType collector_type_ = (XGcOption{}).collector_type_;
+ gc::CollectorType background_collector_type_ = args.GetOrDefault(M::BackgroundGc);
bool low_memory_mode_ = args.Exists(M::LowMemoryMode);
- background_collector_type_ = args.GetOrDefault(M::BackgroundGc);
- {
- XGcOption* xgc = args.Get(M::GcOption);
- if (xgc != nullptr && xgc->collector_type_ != gc::kCollectorTypeNone) {
- collector_type_ = xgc->collector_type_;
- }
- }
-
if (background_collector_type_ == gc::kCollectorTypeNone) {
background_collector_type_ = low_memory_mode_ ?
gc::kCollectorTypeSS : gc::kCollectorTypeHomogeneousSpaceCompact;