remove old LinearMap constructor

This commit is contained in:
Daniel Micay 2013-01-24 11:47:00 -05:00
parent e8f4da78e7
commit acde90dc1c
2 changed files with 4 additions and 8 deletions

View file

@ -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)
}
}