remove some workarounds for old bugs

This commit is contained in:
Tim Chevalier 2011-07-11 17:28:35 -07:00
parent e1620def9f
commit 67ecda6342

View File

@ -120,8 +120,7 @@ tag result { success(match); failure(fail_); }
fn getopts(vec[str] args, vec[opt] opts) -> result {
auto n_opts = vec::len[opt](opts);
fn empty_(uint x) -> vec[optval] { ret vec::empty[optval](); }
auto f = empty_;
fn f(uint x) -> vec[optval] { ret vec::empty(); }
auto vals = vec::init_fn_mut[vec[optval]](f, n_opts);
let vec[str] free = [];
auto l = vec::len[str](args);