From b36f70659d3b2c97d7a3829489e36c7519811273 Mon Sep 17 00:00:00 2001 From: Katy Voor Date: Mon, 14 Nov 2022 22:13:23 -0800 Subject: [PATCH] Remove dead include_search_paths field of Options Summary: `include_search_paths` not used anywhere Reviewed By: aorenste Differential Revision: D41142730 fbshipit-source-id: 3ce781636290b17deb7602640f258fc46c781cfa --- hphp/hack/src/hackc/compile/options.rs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/hphp/hack/src/hackc/compile/options.rs b/hphp/hack/src/hackc/compile/options.rs index 358fda06114..b5adaef8622 100644 --- a/hphp/hack/src/hackc/compile/options.rs +++ b/hphp/hack/src/hackc/compile/options.rs @@ -53,7 +53,6 @@ pub struct Options { pub hhvm: Hhvm, pub hhbc: HhbcFlags, pub max_array_elem_size_on_the_stack: usize, - pub include_search_paths: Vec, } impl Options { @@ -69,7 +68,6 @@ impl Default for Options { compiler_flags: CompilerFlags::default(), hhvm: Hhvm::default(), hhbc: HhbcFlags::default(), - include_search_paths: Default::default(), doc_root: "".into(), } } @@ -83,7 +81,6 @@ impl bytecode_printer::IncludeProcessor for Options { ) -> Option { let alloc = bumpalo::Bump::new(); let include_roots = &self.hhvm.include_roots; - let search_paths = &self.include_search_paths; let doc_root = self.doc_root.as_bstr(); match include_path.into_doc_root_relative(&alloc, include_roots) { IncludePath::Absolute(p) => { @@ -102,12 +99,6 @@ impl bytecode_printer::IncludeProcessor for Options { if path_from_cur_dirname.exists() { Some(path_from_cur_dirname) } else { - for prefix in search_paths.iter() { - let path = Path::new(OsStr::from_bytes(prefix)).join(OsStr::from_bytes(&p)); - if path.exists() { - return Some(path); - } - } None } } -- 2.11.4.GIT