Skip to content

Commit

Permalink
Remove unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Turner committed Jul 14, 2016
1 parent a9dfac8 commit c38d5df
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions src/libsyntax/codemap.rs
Expand Up @@ -827,7 +827,6 @@ impl CodeMapper for CodeMap {
#[cfg(test)]
mod tests {
use super::*;
use std::io::{self, Write};
use errors::snippet::StyledString;
use std::rc::Rc;

Expand Down Expand Up @@ -1118,24 +1117,6 @@ mod tests {
}
}

fn splice(start: Span, end: Span) -> Span {
Span {
lo: start.lo,
hi: end.hi,
expn_id: NO_EXPANSION,
}
}

fn make_string(lines: Vec<Vec<StyledString>>) -> String {
lines.iter()
.flat_map(|rl| {
rl.iter()
.map(|s| &s.text[..])
.chain(Some("\n"))
})
.collect()
}

fn init_expansion_chain(cm: &CodeMap) -> Span {
// Creates an expansion chain containing two recursive calls
// root -> expA -> expA -> expB -> expB -> end
Expand Down

0 comments on commit c38d5df

Please sign in to comment.