remove old snapshot workaround from smallintmap

This commit is contained in:
Daniel Micay 2013-02-06 02:49:05 -05:00
parent bdfb930f34
commit dab2f2fac0

View file

@ -116,8 +116,6 @@ pub impl<V> SmallIntMap<V> {
}
pub impl<V: Copy> SmallIntMap<V> {
// FIXME: #4733, remove after the next snapshot
#[cfg(stage2)]
fn update_with_key(&mut self, key: uint, val: V,
ff: fn(uint, V, V) -> V) -> bool {
match self.find(&key) {
@ -126,8 +124,6 @@ pub impl<V: Copy> SmallIntMap<V> {
}
}
// FIXME: #4733, remove after the next snapshot
#[cfg(stage2)]
fn update(&mut self, key: uint, newval: V, ff: fn(V, V) -> V) -> bool {
self.update_with_key(key, newval, |_k, v, v1| ff(v,v1))
}