Skip to content

Commit c38d5df

Browse files
author
Jonathan Turner
committed
Remove unused imports
1 parent a9dfac8 commit c38d5df

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

src/libsyntax/codemap.rs

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -827,7 +827,6 @@ impl CodeMapper for CodeMap {
827827
#[cfg(test)]
828828
mod tests {
829829
use super::*;
830-
use std::io::{self, Write};
831830
use errors::snippet::StyledString;
832831
use std::rc::Rc;
833832

@@ -1118,24 +1117,6 @@ mod tests {
11181117
}
11191118
}
11201119

1121-
fn splice(start: Span, end: Span) -> Span {
1122-
Span {
1123-
lo: start.lo,
1124-
hi: end.hi,
1125-
expn_id: NO_EXPANSION,
1126-
}
1127-
}
1128-
1129-
fn make_string(lines: Vec<Vec<StyledString>>) -> String {
1130-
lines.iter()
1131-
.flat_map(|rl| {
1132-
rl.iter()
1133-
.map(|s| &s.text[..])
1134-
.chain(Some("\n"))
1135-
})
1136-
.collect()
1137-
}
1138-
11391120
fn init_expansion_chain(cm: &CodeMap) -> Span {
11401121
// Creates an expansion chain containing two recursive calls
11411122
// root -> expA -> expA -> expB -> expB -> end

0 commit comments

Comments
 (0)