@@ -417,24 +417,8 @@ fn get_impls_for_mod(cdata: cmd, m_id: ast::node_id,
417
417
let mod_item = lookup_item( m_id, data) ;
418
418
let mut result = [ ] ;
419
419
ebml:: tagged_docs( mod_item, tag_mod_impl) { |doc|
420
- /*
421
- Pair of an item did and an iface did.
422
- The second one is unneeded if the first id names
423
- an impl; disambiguates if it's a class
424
- */
425
- let did = parse_def_id( ebml:: doc_data( ebml:: get_doc( doc,
426
- tag_mod_impl_use) ) ) ;
420
+ let did = parse_def_id( ebml:: doc_data( doc) ) ;
427
421
let local_did = translate_def_id( cdata, did) ;
428
- /*
429
- // iface is optional
430
- let iface_did = option::map(ebml::maybe_get_doc(doc,
431
- tag_mod_impl_iface)) {|d|
432
- parse_def_id(ebml::doc_data(d))};
433
- option::iter(iface_did) {|x|
434
- let _local_iface_did = translate_def_id(cdata, x);
435
- };
436
- */
437
- // CONFUSED -- previous code is pointless
438
422
// The impl may be defined in a different crate. Ask the caller
439
423
// to give us the metadata
440
424
let impl_cdata = get_cdata( local_did. crate ) ;
@@ -444,8 +428,6 @@ fn get_impls_for_mod(cdata: cmd, m_id: ast::node_id,
444
428
if alt name { some( n) { n == nm } none { true } } {
445
429
let base_tps = item_ty_param_count( item) ;
446
430
result += [ @{
447
- // here, we need to... reconstruct the iface_ref?
448
- // probz broken
449
431
did: local_did, ident: nm,
450
432
methods: item_impl_methods( impl_cdata, item, base_tps)
451
433
} ] ;
0 commit comments