remove old LinearMap constructor
This commit is contained in:
parent
e8f4da78e7
commit
acde90dc1c
@ -60,10 +60,6 @@ pub mod linear {
|
||||
((capacity as float) * 3. / 4.) as uint
|
||||
}
|
||||
|
||||
pub fn LinearMap<K:Eq Hash,V>() -> LinearMap<K,V> {
|
||||
linear_map_with_capacity(INITIAL_CAPACITY)
|
||||
}
|
||||
|
||||
pub fn linear_map_with_capacity<K:Eq Hash,V>(
|
||||
initial_capacity: uint) -> LinearMap<K,V> {
|
||||
let r = rand::Rng();
|
||||
@ -351,7 +347,7 @@ pub mod linear {
|
||||
}
|
||||
}
|
||||
|
||||
impl<K:Hash IterBytes Eq,V> LinearMap<K,V> {
|
||||
pub impl<K:Hash IterBytes Eq,V> LinearMap<K,V> {
|
||||
static fn new() -> LinearMap<K, V> {
|
||||
linear_map_with_capacity(INITIAL_CAPACITY)
|
||||
}
|
||||
@ -495,7 +491,7 @@ pub mod linear {
|
||||
|
||||
pub impl <T: Hash IterBytes Eq> LinearSet<T> {
|
||||
/// Create an empty LinearSet
|
||||
static fn new() -> LinearSet<T> { LinearSet{map: LinearMap()} }
|
||||
static fn new() -> LinearSet<T> { LinearSet{map: LinearMap::new()} }
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -259,7 +259,7 @@ impl Context {
|
||||
static fn new(db: @Mut<Database>,
|
||||
lg: @Mut<Logger>,
|
||||
cfg: @json::Object) -> Context {
|
||||
Context {db: db, logger: lg, cfg: cfg, freshness: LinearMap()}
|
||||
Context{db: db, logger: lg, cfg: cfg, freshness: LinearMap::new()}
|
||||
}
|
||||
|
||||
fn prep<T:Owned
|
||||
@ -270,7 +270,7 @@ impl Context {
|
||||
blk: fn(@Mut<Prep>)->Work<T>) -> Work<T> {
|
||||
let p = @Mut(Prep {ctxt: self,
|
||||
fn_name: fn_name.to_owned(),
|
||||
declared_inputs: LinearMap()});
|
||||
declared_inputs: LinearMap::new()});
|
||||
blk(p)
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user