File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Expand file tree Collapse file tree 1 file changed +1
-9
lines changed 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