Remove some dead code
This commit is contained in:
parent
ad6f98cd28
commit
7ea6e713c2
@ -351,7 +351,6 @@ pub enum Kind {
|
||||
Check,
|
||||
Clippy,
|
||||
Fix,
|
||||
Format,
|
||||
Test,
|
||||
Bench,
|
||||
Dist,
|
||||
@ -399,7 +398,7 @@ macro_rules! describe {
|
||||
native::Lld,
|
||||
native::CrtBeginEnd
|
||||
),
|
||||
Kind::Check | Kind::Clippy { .. } | Kind::Fix | Kind::Format => describe!(
|
||||
Kind::Check | Kind::Clippy { .. } | Kind::Fix => describe!(
|
||||
check::Std,
|
||||
check::Rustc,
|
||||
check::Rustdoc,
|
||||
|
@ -1149,10 +1149,6 @@ pub fn verbose(&self) -> bool {
|
||||
self.verbose > 0
|
||||
}
|
||||
|
||||
pub fn very_verbose(&self) -> bool {
|
||||
self.verbose > 1
|
||||
}
|
||||
|
||||
pub fn sanitizers_enabled(&self, target: TargetSelection) -> bool {
|
||||
self.target_config.get(&target).map(|t| t.sanitizers).flatten().unwrap_or(self.sanitizers)
|
||||
}
|
||||
|
@ -110,7 +110,6 @@
|
||||
use std::io::{Read, Seek, SeekFrom, Write};
|
||||
use std::path::{Path, PathBuf};
|
||||
use std::process::{self, Command};
|
||||
use std::slice;
|
||||
use std::str;
|
||||
|
||||
#[cfg(unix)]
|
||||
@ -472,10 +471,6 @@ pub fn new(config: Config) -> Build {
|
||||
build
|
||||
}
|
||||
|
||||
pub fn build_triple(&self) -> &[Interned<String>] {
|
||||
slice::from_ref(&self.build.triple)
|
||||
}
|
||||
|
||||
// modified from `check_submodule` and `update_submodule` in bootstrap.py
|
||||
/// Given a path to the directory of a submodule, update it.
|
||||
///
|
||||
|
@ -16,11 +16,6 @@
|
||||
use crate::builder::Builder;
|
||||
use crate::config::{Config, TargetSelection};
|
||||
|
||||
/// Returns the `name` as the filename of a static library for `target`.
|
||||
pub fn staticlib(name: &str, target: TargetSelection) -> String {
|
||||
if target.contains("windows") { format!("{}.lib", name) } else { format!("lib{}.a", name) }
|
||||
}
|
||||
|
||||
/// Given an executable called `name`, return the filename for the
|
||||
/// executable for a particular target.
|
||||
pub fn exe(name: &str, target: TargetSelection) -> String {
|
||||
@ -81,21 +76,6 @@ fn link_lib_path() -> Vec<PathBuf> {
|
||||
env::split_paths(&var).collect()
|
||||
}
|
||||
|
||||
/// `push` all components to `buf`. On windows, append `.exe` to the last component.
|
||||
pub fn push_exe_path(mut buf: PathBuf, components: &[&str]) -> PathBuf {
|
||||
let (&file, components) = components.split_last().expect("at least one component required");
|
||||
let mut file = file.to_owned();
|
||||
|
||||
if cfg!(windows) {
|
||||
file.push_str(".exe");
|
||||
}
|
||||
|
||||
buf.extend(components);
|
||||
buf.push(file);
|
||||
|
||||
buf
|
||||
}
|
||||
|
||||
pub struct TimeIt(bool, Instant);
|
||||
|
||||
/// Returns an RAII structure that prints out how long it took to drop.
|
||||
|
Loading…
Reference in New Issue
Block a user