diff --git a/src/vm/obj/assemble.rs b/src/vm/obj/assemble.rs index 46d5e7f..941bdae 100644 --- a/src/vm/obj/assemble.rs +++ b/src/vm/obj/assemble.rs @@ -94,20 +94,12 @@ impl AsmSession { Ok(()) } - pub fn include_paths(&self) -> &Vec { - &self.include_paths - } - - pub fn include_paths_mut(&mut self) -> &mut Vec { - &mut self.include_paths - } - fn resolve_include_path(&self, path: impl AsRef) -> Option { let path = path.as_ref(); self.current_include_path() .and_then(|last_path| last_path.parent()) .map(|last_dir| last_dir.join(path)) - .or_else(|| self.include_paths() + .or_else(|| self.include_paths .iter() .filter_map(|include| include.join(path).canonicalize().ok()) .next())