Skip to content

Commit

Permalink
Auto merge of #11080 - hi-rustin:rustin-patch-dead-code, r=epage
Browse files Browse the repository at this point in the history
Remove dead code

### What does this PR try to resolve?

Remove the dead code. I found it when I tried to build cargo.

r? `@epage`
  • Loading branch information
bors committed Sep 13, 2022
2 parents bd99c04 + 88a7908 commit aa700d4
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/bin/cargo/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -480,13 +480,6 @@ impl LazyConfig {
Self { config: None }
}

/// Check whether the config is loaded
///
/// This is useful for asserts in case the environment needs to be setup before loading
pub fn is_init(&self) -> bool {
self.config.is_some()
}

/// Get the config, loading it if needed
///
/// On error, the process is terminated
Expand Down

0 comments on commit aa700d4

Please sign in to comment.