зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1652560 - Remove unused function. r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D121454
This commit is contained in:
Родитель
ce36d45cdf
Коммит
f884b5bff7
|
@ -1750,7 +1750,6 @@ dependencies = [
|
|||
"bindgen",
|
||||
"lazy_static",
|
||||
"profiler-macros",
|
||||
"toml",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
|
|
|
@ -10,7 +10,6 @@ profiler-macros = { path = "./macros" }
|
|||
[build-dependencies]
|
||||
lazy_static = "1"
|
||||
bindgen = {version = "0.56", default-features = false}
|
||||
toml = {version = "0.4.5", default-features = false}
|
||||
|
||||
[features]
|
||||
# This feature is being set by Gecko. If it's not set, all public functions and
|
||||
|
|
|
@ -15,7 +15,6 @@ use std::env;
|
|||
use std::fs::{self, File};
|
||||
use std::io::Read;
|
||||
use std::path::{Path, PathBuf};
|
||||
use toml::{self, value::Table};
|
||||
|
||||
lazy_static! {
|
||||
static ref OUTDIR_PATH: PathBuf = PathBuf::from(env::var_os("OUT_DIR").unwrap()).join("gecko");
|
||||
|
@ -23,20 +22,6 @@ lazy_static! {
|
|||
|
||||
const BINDINGS_FILE: &str = "bindings.rs";
|
||||
|
||||
fn read_config(path: &Path) -> Table {
|
||||
println!("cargo:rerun-if-changed={}", path.display());
|
||||
|
||||
let mut contents = String::new();
|
||||
File::open(path)
|
||||
.expect("Failed to open config file")
|
||||
.read_to_string(&mut contents)
|
||||
.expect("Failed to read config file");
|
||||
match toml::from_str::<Table>(&contents) {
|
||||
Ok(result) => result,
|
||||
Err(e) => panic!("Failed to parse config file: {}", e),
|
||||
}
|
||||
}
|
||||
|
||||
lazy_static! {
|
||||
static ref BINDGEN_FLAGS: Vec<String> = {
|
||||
// Load build-specific config overrides.
|
||||
|
|
Загрузка…
Ссылка в новой задаче