Skip to content

Commit ce30bb8

Browse files
author
Mark Salyzyn
committed
libmodprobe: remove unused EnableVerbose() method
modprobe command no longer uses EnableVerbose, opting to do the associated operations directly. Test: compile Change-Id: Iffc8324f37f34de4eeb9a27e92fdf5524afa2220
1 parent 63368be commit ce30bb8

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

libmodprobe/include/modprobe/modprobe.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ class Modprobe {
3737
void ResetModuleCount() { module_count_ = 0; }
3838
int GetModuleCount() { return module_count_; }
3939
void EnableBlocklist(bool enable);
40-
void EnableVerbose(bool enable);
4140

4241
private:
4342
std::string MakeCanonical(const std::string& module_path);

libmodprobe/libmodprobe.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -343,14 +343,6 @@ void Modprobe::EnableBlocklist(bool enable) {
343343
blocklist_enabled = enable;
344344
}
345345

346-
void Modprobe::EnableVerbose(bool enable) {
347-
if (enable) {
348-
android::base::SetMinimumLogSeverity(android::base::VERBOSE);
349-
} else {
350-
android::base::SetMinimumLogSeverity(android::base::INFO);
351-
}
352-
}
353-
354346
std::vector<std::string> Modprobe::GetDependencies(const std::string& module) {
355347
auto it = module_deps_.find(module);
356348
if (it == module_deps_.end()) {

0 commit comments

Comments
 (0)