Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ac3b9752 authored by Henri Chataing's avatar Henri Chataing
Browse files

gd: Remove CounterMetrics as dependency of StorageModule

metric capabilities are never directly referenced from
the storage module implementation. Removing the dependency
does not modify the module initialization order either.

Bug: 333555245
Flag: EXEMPT, no logical change
Test: m com.android.btservices
Change-Id: I74e00e74e9b992979acf338975afa6353334728b
parent 64df3259
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -26,7 +26,6 @@
#include <utility>

#include "common/bind.h"
#include "metrics/counter_metrics.h"
#include "os/alarm.h"
#include "os/files.h"
#include "os/handler.h"
@@ -144,9 +143,7 @@ void StorageModule::Clear() {
  pimpl_->cache_.Clear();
}

void StorageModule::ListDependencies(ModuleList* list) const {
  list->add<metrics::CounterMetrics>();
}
void StorageModule::ListDependencies(ModuleList* /*list*/) const {}

void StorageModule::Start() {
  std::lock_guard<std::recursive_mutex> lock(mutex_);