Remove code that was accidentally committed

This was a workaround for the bug that was actually fixed in
164039e867
This commit is contained in:
Tim Chevalier 2012-05-01 08:48:25 -07:00
parent 164039e867
commit 46425af8a5

View File

@ -1667,12 +1667,9 @@ fn ns_for_def(d: def) -> namespace {
fn lookup_external(e: env, cnum: int, ids: [ident], ns: namespace) ->
option<def> {
let mut result = none;
let mut done = false;
for csearch::lookup_defs(e.sess.cstore, cnum, ids).each {|d|
e.ext_map.insert(def_id_of_def(d), ids);
if ns == ns_for_def(d) && !done {
result = some(d);
}
if ns == ns_for_def(d) { result = some(d); }
}
ret result;
}