Skip to content

Commit 5240d01

Browse files
committed
---
yaml --- r: 42203 b: refs/heads/master c: 1057eea h: refs/heads/master i: 42201: 715880a 42199: 52b5e90 v: v3
1 parent b594edb commit 5240d01

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 274e75cd82ac8b94c655e1cba9194f82c47f73d7
2+
refs/heads/master: 1057eea7ac124da94479b4903d5df29c6f6c0660
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 2f46b763da2c098913884f101b6d71d69af41b49
55
refs/heads/try: 3d5418789064fdb463e872a4e651af1c628a3650

trunk/src/libstd/smallintmap.rs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
*/
1515
#[forbid(deprecated_mode)];
1616

17-
use map::StdMap;
18-
1917
use core::container::{Container, Mutable, Map, Set};
2018
use core::dvec::DVec;
2119
use core::ops;
@@ -98,8 +96,7 @@ impl<V> SmallIntMap<V>: Container {
9896
}
9997

10098
/// Implements the map::map interface for smallintmap
101-
impl<V: Copy> SmallIntMap<V>: StdMap<uint, V> {
102-
pure fn size() -> uint { self.len() }
99+
impl<V: Copy> SmallIntMap<V> {
103100
#[inline(always)]
104101
fn insert(key: uint, value: V) -> bool {
105102
let exists = contains_key(self, key);
@@ -172,11 +169,6 @@ impl<V: Copy> SmallIntMap<V>: ops::Index<uint, V> {
172169
}
173170
}
174171

175-
/// Cast the given smallintmap to a map::map
176-
pub fn as_map<V: Copy>(s: SmallIntMap<V>) -> StdMap<uint, V> {
177-
s as StdMap::<uint, V>
178-
}
179-
180172
#[cfg(test)]
181173
mod tests {
182174
use smallintmap::{mk, SmallIntMap};

0 commit comments

Comments
 (0)