@@ -557,10 +557,6 @@ impl<'mod_lifetime, 'crate_lft: 'mod_lifetime> ImportResolver<'mod_lifetime, 'cr
557
557
Self { crate_name, dependencies, module_path, imports, declared, priv_modules }
558
558
}
559
559
560
- pub fn get_declared_type ( & self , ident : & syn:: Ident ) -> Option < & DeclType < ' crate_lft > > {
561
- self . declared . get ( ident)
562
- }
563
-
564
560
pub fn maybe_resolve_declared ( & self , id : & syn:: Ident ) -> Option < & DeclType < ' crate_lft > > {
565
561
self . declared . get ( id)
566
562
}
@@ -573,17 +569,6 @@ impl<'mod_lifetime, 'crate_lft: 'mod_lifetime> ImportResolver<'mod_lifetime, 'cr
573
569
} else { None }
574
570
}
575
571
576
- pub fn maybe_resolve_non_ignored_ident ( & self , id : & syn:: Ident ) -> Option < String > {
577
- if let Some ( ( imp, _) ) = self . imports . get ( id) {
578
- Some ( imp. clone ( ) )
579
- } else if let Some ( decl_type) = self . declared . get ( id) {
580
- match decl_type {
581
- DeclType :: StructIgnored => None ,
582
- _ => Some ( self . module_path . to_string ( ) + "::" + & format ! ( "{}" , id) ) ,
583
- }
584
- } else { None }
585
- }
586
-
587
572
pub fn maybe_resolve_path ( & self , p : & syn:: Path , generics : Option < & GenericTypes > ) -> Option < String > {
588
573
if let Some ( gen_types) = generics {
589
574
if let Some ( resp) = gen_types. maybe_resolve_path ( p) {
@@ -1594,9 +1579,6 @@ impl<'a, 'c: 'a> TypeResolver<'a, 'c> {
1594
1579
// *** Type definition during main.rs processing ***
1595
1580
// *************************************************
1596
1581
1597
- pub fn get_declared_type ( & ' a self , ident : & syn:: Ident ) -> Option < & ' a DeclType < ' c > > {
1598
- self . types . get_declared_type ( ident)
1599
- }
1600
1582
/// Returns true if the object at the given path is mapped as X { inner: *mut origX, .. }.
1601
1583
pub fn c_type_has_inner_from_path ( & self , full_path : & str ) -> bool {
1602
1584
self . crate_types . opaques . get ( full_path) . is_some ( )
@@ -1621,10 +1603,6 @@ impl<'a, 'c: 'a> TypeResolver<'a, 'c> {
1621
1603
self . types . maybe_resolve_ident ( id)
1622
1604
}
1623
1605
1624
- pub fn maybe_resolve_non_ignored_ident ( & self , id : & syn:: Ident ) -> Option < String > {
1625
- self . types . maybe_resolve_non_ignored_ident ( id)
1626
- }
1627
-
1628
1606
pub fn maybe_resolve_path ( & self , p_arg : & syn:: Path , generics : Option < & GenericTypes > ) -> Option < String > {
1629
1607
self . types . maybe_resolve_path ( p_arg, generics)
1630
1608
}
0 commit comments