Remove unused imports throughout src/

This commit is contained in:
Alex Crichton 2013-02-27 00:10:03 -05:00
parent 55461d888f
commit dfb5c10dea
214 changed files with 19 additions and 626 deletions

View file

@ -10,9 +10,7 @@
use sys;
use cast;
use ptr;
use task;
use uint;
use vec;
use rand;
use libc::{c_void, size_t};

View file

@ -77,9 +77,7 @@ debug!("hello, %s!", "world");
*/
use cmp::Eq;
use option::{Some, None};
use prelude::*;
use str;
/*
* We have a 'ct' (compile-time) module that parses format strings into a
@ -98,7 +96,6 @@ pub mod ct {
use char;
use prelude::*;
use str;
use vec;
#[deriving_eq]
pub enum Signedness { Signed, Unsigned, }

View file

@ -24,7 +24,6 @@ do || {
*/
use ops::Drop;
use task::{spawn, failing};
pub trait Finally<T> {
fn finally(&self, dtor: &fn()) -> T;

View file

@ -31,16 +31,14 @@ use kinds::Owned;
use libc::{c_void, uintptr_t};
use option::{Option, Some, None};
use ops::Drop;
use pipes;
use unstable::{Exclusive, exclusive};
use unstable::{SharedMutableState, shared_mutable_state};
use unstable::{get_shared_immutable_state};
use unstable::at_exit::at_exit;
use unstable::intrinsics::atomic_cxchg;
use hashmap::linear::LinearMap;
use sys::Closure;
use task::spawn;
use uint;
#[cfg(test)]
use private::{SharedMutableState, shared_mutable_state};
pub type GlobalDataKey<T> = &fn(v: T);

View file

@ -18,7 +18,8 @@ use sys;
use unstable::exchange_alloc;
use cast::transmute;
use gc::{cleanup_stack_for_failure, gc, Word};
#[allow(non_camel_case_types)]
pub type rust_task = c_void;
#[cfg(target_word_size = "32")]
pub const FROZEN_BIT: uint = 0x80000000;

View file

@ -22,7 +22,6 @@ use cell::Cell;
use comm::{GenericSmartChan, stream};
use comm::{Port, Chan, SharedChan, GenericChan, GenericPort};
use hashmap::linear::LinearMap;
use ops::Drop;
use option::{Some, None, swap_unwrap};
use unstable::at_exit::at_exit;
use unstable::finally::Finally;