Remove unused imports throughout

This commit is contained in:
Alex Crichton 2013-03-22 22:26:32 -04:00
parent 3d588c5286
commit fa7772893a
12 changed files with 5 additions and 22 deletions

View file

@ -17,10 +17,10 @@ Simple compression
use libc;
use libc::{c_void, size_t, c_int};
use ptr;
use rand::RngUtil;
use vec;
#[cfg(test)] use rand;
#[cfg(test)] use rand::RngUtil;
pub mod rustrt {
use libc::{c_int, c_void, size_t};

View file

@ -10,8 +10,6 @@
//! Logging
use libc;
pub mod rustrt {
use libc;
@ -49,6 +47,7 @@ pub fn console_off() {
pub fn log_type<T>(level: u32, object: &T) {
use cast::transmute;
use io;
use libc;
use repr;
use vec;

View file

@ -8,9 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use option::*;
use comm::{GenericPort, GenericChan};
pub mod file;
// FIXME #5370 Strongly want this to be StreamError(&mut Stream)

View file

@ -42,7 +42,6 @@ use ptr;
use libc::{c_void, c_int, size_t, malloc, free, ssize_t};
use cast::{transmute, transmute_mut_region};
use ptr::null;
use sys::size_of;
use super::uvll;
use super::uvll::*;
use unstable::finally::Finally;

View file

@ -32,7 +32,6 @@
use libc::{size_t, c_int, c_uint, c_void, c_char, uintptr_t};
use libc::{malloc, free};
use prelude::*;
use ptr::to_unsafe_ptr;
pub struct uv_err_t {
code: c_int,

View file

@ -28,7 +28,6 @@ use util::common::indenter;
use util::ppaux::ty_to_str;
use core::option::None;
use core::uint;
use core::vec;
use syntax::ast;
use syntax::codemap;

View file

@ -60,7 +60,6 @@ use middle::ty::{ty_param_substs_and_ty};
use middle::ty;
use middle::typeck::rscope::{in_binding_rscope};
use middle::typeck::rscope::{region_scope, type_rscope, RegionError};
use middle::typeck::{CrateCtxt};
use core::result;
use core::vec;

View file

@ -1328,7 +1328,7 @@ pub fn check_expr_with_unifier(fcx: @mut FnCtxt,
sugar: ast::CallSugar) {
// Index expressions need to be handled separately, to inform them
// that they appear in call position.
let mut bot = check_expr(fcx, f);
let mut _bot = check_expr(fcx, f);
check_call_or_method(fcx,
sp,
call_expr_id,

View file

@ -1202,7 +1202,6 @@ mod tests {
use core::result;
use core::hashmap::linear::LinearMap;
use core::cmp;
fn mk_object(items: &[(~str, Json)]) -> Json {

View file

@ -725,8 +725,6 @@ fn copy_vec<T:Copy>(dest: &mut [T], s1: uint,
#[cfg(test)]
mod test_qsort3 {
use core::prelude::*;
use sort::*;
use core::vec;
@ -770,8 +768,6 @@ mod test_qsort3 {
#[cfg(test)]
mod test_qsort {
use core::prelude::*;
use sort::*;
use core::int;

View file

@ -19,11 +19,8 @@ use parse::parser::Parser;
use parse::token::{Token, EOF, to_str, nonterminal};
use parse::token;
use core::option::{Option, Some, None};
use core::str;
use core::uint;
use core::vec;
use std::oldmap::HashMap;
use core::hashmap::linear::LinearMap;
use core::prelude::*;
/* This is an Earley-like parser, without support for in-grammar nonterminals,
only by calling out to the main rust parser for named nonterminals (which it

View file

@ -20,7 +20,6 @@ use parse::lexer::TokenAndSpan;
use core::option;
use core::vec;
use std;
/* FIXME #2811: figure out how to have a uniquely linked stack, and change to
`~` */