Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Gerwitz <mike.gerwitz@ryansg.com>2020-04-07 10:50:57 -0400
committerMike Gerwitz <mike.gerwitz@ryansg.com>2020-04-28 09:06:25 -0400
commit4a7e00c404c14261c4a7d492b54c84e22e060e37 (patch)
tree0e78ab2346f44dee0da123760e75278407b2ebd6 /tamer/src/ld/poc.rs
parentc94120335f50dcf166fd38479b25bea1d00dc870 (diff)
downloadtame-4a7e00c404c14261c4a7d492b54c84e22e060e37.tar.gz
tame-4a7e00c404c14261c4a7d492b54c84e22e060e37.tar.bz2
tame-4a7e00c404c14261c4a7d492b54c84e22e060e37.zip
[DEV-7084] TAMER: ld::poc: Remove unused fragments arg
Diffstat (limited to 'tamer/src/ld/poc.rs')
-rw-r--r--tamer/src/ld/poc.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/tamer/src/ld/poc.rs b/tamer/src/ld/poc.rs
index cb200b3..80abaed 100644
--- a/tamer/src/ld/poc.rs
+++ b/tamer/src/ld/poc.rs
@@ -32,7 +32,7 @@ use crate::obj::xmle::writer::XmleWriter;
use crate::obj::xmlo::reader::{XmloError, XmloReader};
use crate::obj::xmlo::{AsgBuilder, AsgBuilderState};
use crate::sym::{DefaultInterner, Interner, Symbol};
-use fxhash::{FxBuildHasher, FxHashMap};
+use fxhash::FxBuildHasher;
use std::error::Error;
use std::fs;
use std::io::BufReader;
@@ -45,14 +45,12 @@ type LinkerAsgBuilderState<'i> =
pub fn main(package_path: &str, output: &str) -> Result<(), Box<dyn Error>> {
let mut fs = VisitOnceFilesystem::new();
- let mut fragments: FxHashMap<&str, String> = Default::default();
let mut depgraph = LinkerAsg::with_capacity(65536, 65536);
let interner = DefaultInterner::new();
let state = load_xmlo(
package_path,
&mut fs,
- &mut fragments,
&mut depgraph,
&interner,
Default::default(),
@@ -116,7 +114,6 @@ pub fn main(package_path: &str, output: &str) -> Result<(), Box<dyn Error>> {
fn load_xmlo<'a, 'i, I: Interner<'i>>(
path_str: &'a str,
fs: &mut VisitOnceFilesystem<FxBuildHasher>,
- fragments: &mut FxHashMap<&'i str, String>,
depgraph: &mut LinkerAsg<'i>,
interner: &'i I,
state: LinkerAsgBuilderState<'i>,
@@ -146,7 +143,7 @@ fn load_xmlo<'a, 'i, I: Interner<'i>>(
let path_abs = path_buf.canonicalize()?;
let path = path_abs.to_str().unwrap();
- state = load_xmlo(path, fs, fragments, depgraph, interner, state)?;
+ state = load_xmlo(path, fs, depgraph, interner, state)?;
}
Ok(state)