Skip to content

Commit

Permalink
Remove unused imports throughout
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Mar 26, 2013
1 parent 3d588c5 commit fa77728
Show file tree
Hide file tree
Showing 12 changed files with 5 additions and 22 deletions.
2 changes: 1 addition & 1 deletion src/libcore/flate.rs
Expand Up @@ -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};
Expand Down
3 changes: 1 addition & 2 deletions src/libcore/logging.rs
Expand Up @@ -10,8 +10,6 @@

//! Logging

use libc;

pub mod rustrt {
use libc;

Expand Down Expand Up @@ -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;

Expand Down
3 changes: 0 additions & 3 deletions src/libcore/rt/io/mod.rs
Expand Up @@ -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)
Expand Down
1 change: 0 additions & 1 deletion src/libcore/rt/uv/mod.rs
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion src/libcore/rt/uvll.rs
Expand Up @@ -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,
Expand Down
1 change: 0 additions & 1 deletion src/librustc/middle/trans/tvec.rs
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion src/librustc/middle/typeck/astconv.rs
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/librustc/middle/typeck/check/mod.rs
Expand Up @@ -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,
Expand Down
1 change: 0 additions & 1 deletion src/libstd/json.rs
Expand Up @@ -1202,7 +1202,6 @@ mod tests {

use core::result;
use core::hashmap::linear::LinearMap;
use core::cmp;


fn mk_object(items: &[(~str, Json)]) -> Json {
Expand Down
4 changes: 0 additions & 4 deletions src/libstd/sort.rs
Expand Up @@ -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;
Expand Down Expand Up @@ -770,8 +768,6 @@ mod test_qsort3 {

#[cfg(test)]
mod test_qsort {
use core::prelude::*;

use sort::*;

use core::int;
Expand Down
7 changes: 2 additions & 5 deletions src/libsyntax/ext/tt/macro_parser.rs
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion src/libsyntax/ext/tt/transcribe.rs
Expand Up @@ -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
`~` */
Expand Down

0 comments on commit fa77728

Please sign in to comment.