diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-12-09 17:59:21 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-12-09 17:59:21 -0800 |
| commit | 9723d3ac2ff5b008d207012ec5d37b2c69f402ed (patch) | |
| tree | 35ad1b902932e98a5fd959f0615f79acc60589bb /src/libstd | |
| parent | 55a3a5fcc973663af3694f32be7a4df10a1a2cd1 (diff) | |
| download | rust-9723d3ac2ff5b008d207012ec5d37b2c69f402ed.tar.gz rust-9723d3ac2ff5b008d207012ec5d37b2c69f402ed.zip | |
Remove transitional code
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/bitv.rs | 8 | ||||
| -rw-r--r-- | src/libstd/ebml.rs | 10 | ||||
| -rw-r--r-- | src/libstd/map.rs | 10 | ||||
| -rw-r--r-- | src/libstd/smallintmap.rs | 10 |
4 files changed, 0 insertions, 38 deletions
diff --git a/src/libstd/bitv.rs b/src/libstd/bitv.rs index 72f21a687da..5b9dc6cf3a8 100644 --- a/src/libstd/bitv.rs +++ b/src/libstd/bitv.rs @@ -565,14 +565,6 @@ pure fn land(w0: uint, w1: uint) -> uint { return w0 & w1; } pure fn right(_w0: uint, w1: uint) -> uint { return w1; } -#[cfg(stage0)] -impl Bitv: ops::Index<uint,bool> { - pure fn index(i: uint) -> bool { - self.get(i) - } -} -#[cfg(stage1)] -#[cfg(stage2)] impl Bitv: ops::Index<uint,bool> { pure fn index(&self, i: uint) -> bool { self.get(i) diff --git a/src/libstd/ebml.rs b/src/libstd/ebml.rs index 164021783d1..d439eef7cce 100644 --- a/src/libstd/ebml.rs +++ b/src/libstd/ebml.rs @@ -57,16 +57,6 @@ pub mod reader { // ebml reading - #[cfg(stage0)] - impl Doc: ops::Index<uint,Doc> { - pure fn index(tag: uint) -> Doc { - unsafe { - get_doc(self, tag) - } - } - } - #[cfg(stage1)] - #[cfg(stage2)] impl Doc: ops::Index<uint,Doc> { pure fn index(&self, tag: uint) -> Doc { unsafe { diff --git a/src/libstd/map.rs b/src/libstd/map.rs index add1976539c..39124dfbfba 100644 --- a/src/libstd/map.rs +++ b/src/libstd/map.rs @@ -429,16 +429,6 @@ pub mod chained { } } - #[cfg(stage0)] - impl<K:Eq IterBytes Hash Copy, V: Copy> T<K, V>: ops::Index<K, V> { - pure fn index(k: K) -> V { - unsafe { - self.get(k) - } - } - } - #[cfg(stage1)] - #[cfg(stage2)] impl<K:Eq IterBytes Hash Copy, V: Copy> T<K, V>: ops::Index<K, V> { pure fn index(&self, k: K) -> V { unsafe { diff --git a/src/libstd/smallintmap.rs b/src/libstd/smallintmap.rs index 3e82c3c9419..b16cf99cb4e 100644 --- a/src/libstd/smallintmap.rs +++ b/src/libstd/smallintmap.rs @@ -150,16 +150,6 @@ impl<V: Copy> SmallIntMap<V>: map::Map<uint, V> { } } -#[cfg(stage0)] -impl<V: Copy> SmallIntMap<V>: ops::Index<uint, V> { - pure fn index(key: uint) -> V { - unsafe { - get(self, key) - } - } -} -#[cfg(stage1)] -#[cfg(stage2)] impl<V: Copy> SmallIntMap<V>: ops::Index<uint, V> { pure fn index(&self, key: uint) -> V { unsafe { |
