libmodprobe: remove unused EnableVerbose() method

modprobe command no longer uses EnableVerbose, opting to do the
associated operations directly.

Test: compile
Change-Id: Iffc8324f37f34de4eeb9a27e92fdf5524afa2220
This commit is contained in:
Mark Salyzyn 2020-06-26 06:33:15 -07:00
parent 63368beaba
commit ce30bb8e4b
2 changed files with 0 additions and 9 deletions

View File

@ -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);

View File

@ -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<std::string> Modprobe::GetDependencies(const std::string& module) {
auto it = module_deps_.find(module);
if (it == module_deps_.end()) {