Skip to content

Commit

Permalink
rust-agent: Remove unused functions
Browse files Browse the repository at this point in the history
Fixes the following warning:

   Compiling logging v0.1.0 (/home/ddd/go/src/github.com/kata-containers-2.0/pkg/logging)
   warning: associated function is never used: `set_level`
      --> /home/ddd/go/src/github.com/kata-containers-2.0/pkg/logging/src/lib.rs:186:8
       |
   186 |     fn set_level(&self, level: slog::Level) {
       |        ^^^^^^^^^
       |
       = note: `#[warn(dead_code)]` on by default

Fixes: #750

Signed-off-by: Christophe de Dinechin <dinechin@redhat.com>
  • Loading branch information
c3d committed Apr 12, 2021
1 parent 67a5da4 commit 1a3813e
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions pkg/logging/src/lib.rs
Expand Up @@ -182,12 +182,6 @@ impl<D> RuntimeLevelFilter<D> {
level: Mutex::new(level),
}
}

fn set_level(&self, level: slog::Level) {
let mut log_level = self.level.lock().unwrap();

*log_level = level;
}
}

impl<D> Drain for RuntimeLevelFilter<D>
Expand Down

0 comments on commit 1a3813e

Please sign in to comment.