build.rs: remove dead code

This commit is contained in:
Johannes Altmanninger 2024-01-14 13:20:32 +01:00
parent 68d1207d53
commit 10891d2985

View File

@ -4,7 +4,6 @@ use rsconf::{LinkType, Target};
use std::env;
use std::error::Error;
use std::path::{Path, PathBuf};
use std::process::Stdio;
fn main() {
for key in ["DOCDIR", "DATADIR", "SYSCONFDIR", "BINDIR", "LOCALEDIR"] {
@ -112,17 +111,6 @@ fn detect_cfgs(target: Target) {
}
}
fn compiles(file: &str) -> bool {
let mut command = cc::Build::new()
.flag("-fsyntax-only")
.get_compiler()
.to_command();
command.arg(file);
command.stdout(Stdio::null());
command.stderr(Stdio::null());
command.status().unwrap().success()
}
/// Detect if we're being compiled for a BSD-derived OS, allowing targeting code conditionally with
/// `#[cfg(feature = "bsd")]`.
///