Skip to content

Commit fd286d0

Browse files
committed
---
yaml --- r: 41402 b: refs/heads/snap-stage3 c: 1057eea h: refs/heads/master v: v3
1 parent e6de36d commit fd286d0

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,7 +1,7 @@
11
---
22
refs/heads/master: 09bb07bed9166105ea961a42b5fff7739ae0d2e9
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 274e75cd82ac8b94c655e1cba9194f82c47f73d7
4+
refs/heads/snap-stage3: 1057eea7ac124da94479b4903d5df29c6f6c0660
55
refs/heads/try: 3d5418789064fdb463e872a4e651af1c628a3650
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/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)