File tree Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 274e75cd82ac8b94c655e1cba9194f82c47f73d7
2
+ refs/heads/master: 1057eea7ac124da94479b4903d5df29c6f6c0660
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 2f46b763da2c098913884f101b6d71d69af41b49
5
5
refs/heads/try: 3d5418789064fdb463e872a4e651af1c628a3650
Original file line number Diff line number Diff line change 14
14
*/
15
15
#[ forbid( deprecated_mode) ] ;
16
16
17
- use map:: StdMap ;
18
-
19
17
use core:: container:: { Container , Mutable , Map , Set } ;
20
18
use core:: dvec:: DVec ;
21
19
use core:: ops;
@@ -98,8 +96,7 @@ impl<V> SmallIntMap<V>: Container {
98
96
}
99
97
100
98
/// 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 > {
103
100
#[ inline( always) ]
104
101
fn insert ( key : uint , value : V ) -> bool {
105
102
let exists = contains_key ( self , key) ;
@@ -172,11 +169,6 @@ impl<V: Copy> SmallIntMap<V>: ops::Index<uint, V> {
172
169
}
173
170
}
174
171
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
-
180
172
#[ cfg( test) ]
181
173
mod tests {
182
174
use smallintmap:: { mk, SmallIntMap } ;
You can’t perform that action at this time.
0 commit comments