Remove unused imports throughout
This commit is contained in:
parent
3d588c5286
commit
fa7772893a
12 changed files with 5 additions and 22 deletions
|
@ -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};
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -1202,7 +1202,6 @@ mod tests {
|
|||
|
||||
use core::result;
|
||||
use core::hashmap::linear::LinearMap;
|
||||
use core::cmp;
|
||||
|
||||
|
||||
fn mk_object(items: &[(~str, Json)]) -> Json {
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
`~` */
|
||||
|
|
Loading…
Add table
Reference in a new issue