From ce30bb8e4b276a0dd2aecbab6fe6f59b081b6f91 Mon Sep 17 00:00:00 2001 From: Mark Salyzyn Date: Fri, 26 Jun 2020 06:33:15 -0700 Subject: [PATCH] libmodprobe: remove unused EnableVerbose() method modprobe command no longer uses EnableVerbose, opting to do the associated operations directly. Test: compile Change-Id: Iffc8324f37f34de4eeb9a27e92fdf5524afa2220 --- libmodprobe/include/modprobe/modprobe.h | 1 - libmodprobe/libmodprobe.cpp | 8 -------- 2 files changed, 9 deletions(-) diff --git a/libmodprobe/include/modprobe/modprobe.h b/libmodprobe/include/modprobe/modprobe.h index 4806b08b4..baee4f930 100644 --- a/libmodprobe/include/modprobe/modprobe.h +++ b/libmodprobe/include/modprobe/modprobe.h @@ -37,7 +37,6 @@ class Modprobe { void ResetModuleCount() { module_count_ = 0; } int GetModuleCount() { return module_count_; } void EnableBlocklist(bool enable); - void EnableVerbose(bool enable); private: std::string MakeCanonical(const std::string& module_path); diff --git a/libmodprobe/libmodprobe.cpp b/libmodprobe/libmodprobe.cpp index 5a6ae8be1..bbdd31778 100644 --- a/libmodprobe/libmodprobe.cpp +++ b/libmodprobe/libmodprobe.cpp @@ -343,14 +343,6 @@ void Modprobe::EnableBlocklist(bool enable) { blocklist_enabled = enable; } -void Modprobe::EnableVerbose(bool enable) { - if (enable) { - android::base::SetMinimumLogSeverity(android::base::VERBOSE); - } else { - android::base::SetMinimumLogSeverity(android::base::INFO); - } -} - std::vector Modprobe::GetDependencies(const std::string& module) { auto it = module_deps_.find(module); if (it == module_deps_.end()) {