Remove dead codes

This commit is contained in:
Kiet Tran
2013-12-08 02:55:28 -05:00
parent c06dd0e0af
commit 1755408d1a
67 changed files with 150 additions and 1130 deletions

View File

@@ -37,17 +37,6 @@ struct BasicLoop {
enum Message { RunRemote(uint), RemoveRemote(uint) }
struct Time {
sec: u64,
nsec: u64,
}
impl Ord for Time {
fn lt(&self, other: &Time) -> bool {
self.sec < other.sec || self.nsec < other.nsec
}
}
impl BasicLoop {
fn new() -> BasicLoop {
BasicLoop {
@@ -238,14 +227,3 @@ impl Drop for BasicPausible {
}
}
}
fn time() -> Time {
extern {
fn rust_get_time(sec: &mut i64, nsec: &mut i32);
}
let mut sec = 0;
let mut nsec = 0;
unsafe { rust_get_time(&mut sec, &mut nsec) }
Time { sec: sec as u64, nsec: nsec as u64 }
}