remove unused imports
This commit is contained in:
parent
30973ccb90
commit
bbcff95ac5
@ -229,8 +229,6 @@ impl<'self> FromBase64 for &'self str {
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use core::str;
|
||||
|
||||
#[test]
|
||||
fn test_to_base64() {
|
||||
assert_eq!("".to_base64(), ~"");
|
||||
|
@ -1271,7 +1271,6 @@ mod tests {
|
||||
|
||||
use rope::*;
|
||||
|
||||
use core::str;
|
||||
use core::uint;
|
||||
use core::vec;
|
||||
|
||||
|
@ -24,7 +24,6 @@
|
||||
|
||||
use core::prelude::*;
|
||||
|
||||
use core::str;
|
||||
use core::uint;
|
||||
use core::vec;
|
||||
|
||||
@ -279,8 +278,6 @@ pub fn sha1() -> @Sha1 {
|
||||
mod tests {
|
||||
use sha1;
|
||||
|
||||
use core::vec;
|
||||
|
||||
#[test]
|
||||
fn test() {
|
||||
struct Test {
|
||||
|
@ -294,11 +294,6 @@ mod tests {
|
||||
|
||||
use super::SmallIntMap;
|
||||
|
||||
use core::local_data;
|
||||
use core::rand;
|
||||
use core::uint;
|
||||
use core::vec;
|
||||
|
||||
#[test]
|
||||
fn test_find_mut() {
|
||||
let mut m = SmallIntMap::new();
|
||||
|
@ -751,7 +751,6 @@ fn shift_vec<T:Copy>(dest: &mut [T],
|
||||
mod test_qsort3 {
|
||||
use sort::*;
|
||||
|
||||
use core::vec;
|
||||
|
||||
fn check_sort(v1: &mut [int], v2: &mut [int]) {
|
||||
let len = v1.len();
|
||||
@ -861,8 +860,6 @@ mod tests {
|
||||
|
||||
use sort::*;
|
||||
|
||||
use core::vec;
|
||||
|
||||
fn check_sort(v1: &[int], v2: &[int]) {
|
||||
let len = v1.len();
|
||||
pub fn le(a: &int, b: &int) -> bool { *a <= *b }
|
||||
|
@ -12,7 +12,6 @@
|
||||
|
||||
use core::prelude::*;
|
||||
|
||||
use core::vec;
|
||||
use core::f64;
|
||||
use core::cmp;
|
||||
use core::num;
|
||||
|
@ -37,6 +37,7 @@ not required in or otherwise suitable for the core library.
|
||||
|
||||
extern mod core(name = "std", vers = "0.7-pre");
|
||||
|
||||
#[cfg(stage0)]
|
||||
use core::{str, unstable};
|
||||
use core::str::{StrSlice, OwnedStr};
|
||||
|
||||
|
@ -36,7 +36,6 @@ mod tests {
|
||||
use tempfile::mkdtemp;
|
||||
|
||||
use core::os;
|
||||
use core::str;
|
||||
|
||||
#[test]
|
||||
fn test_mkdtemp() {
|
||||
|
@ -313,7 +313,6 @@ pub fn parse(file: @Reader, longnames: bool) -> Result<~TermInfo, ~str> {
|
||||
#[cfg(test)]
|
||||
mod test {
|
||||
use super::*;
|
||||
use p = core::path::Path;
|
||||
|
||||
#[test]
|
||||
fn test_veclens() {
|
||||
|
@ -710,7 +710,6 @@ mod test_treemap {
|
||||
|
||||
use core::rand::RngUtil;
|
||||
use core::rand;
|
||||
use core::str;
|
||||
use core::vec;
|
||||
|
||||
#[test]
|
||||
|
@ -199,9 +199,6 @@ pub fn minimize_rpaths(rpaths: &[Path]) -> ~[Path] {
|
||||
mod test {
|
||||
use core::prelude::*;
|
||||
|
||||
use core::os;
|
||||
use core::str;
|
||||
|
||||
// FIXME(#2119): the outer attribute should be #[cfg(unix, test)], then
|
||||
// these redundant #[cfg(test)] blocks can be removed
|
||||
#[cfg(test)]
|
||||
|
@ -15,7 +15,6 @@ use cstore = metadata::cstore;
|
||||
use driver::session::Session;
|
||||
use e = metadata::encoder;
|
||||
use metadata::decoder;
|
||||
use metadata::encoder;
|
||||
use metadata::tydecode;
|
||||
use metadata::tydecode::{DefIdSource, NominalType, TypeWithId, TypeParameter};
|
||||
use metadata::tyencode;
|
||||
|
@ -47,7 +47,6 @@
|
||||
use core::container::Map;
|
||||
use core::libc::c_ulonglong;
|
||||
use core::option::{Option, Some, None};
|
||||
use core::str;
|
||||
use core::vec;
|
||||
|
||||
use lib::llvm::{ValueRef, TypeRef, True, IntEQ, IntNE};
|
||||
|
@ -71,7 +71,6 @@ use core::libc::c_uint;
|
||||
use core::str;
|
||||
use core::uint;
|
||||
use core::vec;
|
||||
use core::local_data;
|
||||
use extra::time;
|
||||
use syntax::ast::ident;
|
||||
use syntax::ast_map::{path, path_elt_to_str, path_name};
|
||||
@ -3120,4 +3119,3 @@ pub fn trans_crate(sess: session::Session,
|
||||
|
||||
return (llcx, llmod, link_meta);
|
||||
}
|
||||
|
||||
|
@ -24,7 +24,6 @@ use fold::Fold;
|
||||
use fold;
|
||||
use pass::Pass;
|
||||
|
||||
use core::str;
|
||||
use core::util;
|
||||
|
||||
pub fn mk_pass() -> Pass {
|
||||
|
@ -22,7 +22,6 @@ use markdown_writer::WriterFactory;
|
||||
use pass::Pass;
|
||||
use sort_pass;
|
||||
|
||||
use core::iterator::IteratorUtil;
|
||||
use core::cell::Cell;
|
||||
use core::str;
|
||||
use core::vec;
|
||||
|
@ -149,8 +149,6 @@ mod test {
|
||||
use sectionalize_pass;
|
||||
use text_pass::mk_pass;
|
||||
|
||||
use core::str;
|
||||
|
||||
fn mk_doc(source: ~str) -> doc::Doc {
|
||||
do astsrv::from_str(copy source) |srv| {
|
||||
let doc = extract::from_srv(srv.clone(), ~"");
|
||||
|
@ -947,7 +947,6 @@ pub mod windows {
|
||||
mod tests {
|
||||
use option::{None, Some};
|
||||
use path::{PosixPath, WindowsPath, windows};
|
||||
use str;
|
||||
|
||||
#[test]
|
||||
fn test_double_slash_collapsing() {
|
||||
|
@ -39,8 +39,6 @@ pub mod rt {
|
||||
use parse;
|
||||
use print::pprust;
|
||||
|
||||
use core::str;
|
||||
|
||||
pub use ast::*;
|
||||
pub use parse::token::*;
|
||||
pub use parse::new_parser_from_tts;
|
||||
|
@ -969,7 +969,7 @@ mod test {
|
||||
// change every identifier to "zz"
|
||||
pub fn to_zz() -> @fn(ast::ident)->ast::ident {
|
||||
let zz_id = token::str_to_ident("zz");
|
||||
|id| {zz_id}
|
||||
|_id| {zz_id}
|
||||
}
|
||||
|
||||
// maybe add to expand.rs...
|
||||
|
Loading…
x
Reference in New Issue
Block a user