Skip to content

Commit dfd2669

Browse files
committed
Delete dead code
1 parent d8fc630 commit dfd2669

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

src/librustc_privacy/lib.rs

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1552,32 +1552,6 @@ impl<'a, 'tcx: 'a> SearchInterfaceForPrivateItemsVisitor<'a, 'tcx> {
15521552
}
15531553
}
15541554

1555-
1556-
/*struct LeakedPrivateDependenciesVisitor<'a, 'tcx: 'a> {
1557-
tcx: TyCtxt<'a, 'tcx, 'tcx>,
1558-
public_crates: FxHashSet<CrateNum>
1559-
}
1560-
1561-
impl<'a, 'tcx> LeakedPrivateDependenciesVisitor<'a, 'tcx> {
1562-
fn is_private_dep(&self, item_id: DefId) {
1563-
!item_id.is_local() && !self.public_crates.contains(item_id.krate)
1564-
}
1565-
1566-
}
1567-
1568-
impl<'a, 'tcx> Visitor<'tcx> for LeakedPrivateDependenciesVisitor<'a, 'tcx> {
1569-
fn nested_visit_map<'this>(&'this mut self) -> nestedvisitormap<'this, 'tcx> {
1570-
nestedvisitormap::onlybodies(&self.tcx.hir())
1571-
}
1572-
1573-
fn visit_item(&mut self, item: &'tcx hir::Item) {
1574-
1575-
}
1576-
1577-
}*/
1578-
1579-
1580-
15811555
impl<'a, 'tcx> DefIdVisitor<'a, 'tcx> for SearchInterfaceForPrivateItemsVisitor<'a, 'tcx> {
15821556
fn tcx(&self) -> TyCtxt<'a, 'tcx, 'tcx> { self.tcx }
15831557
fn visit_def_id(&mut self, def_id: DefId, kind: &str, descr: &dyn fmt::Display) -> bool {

0 commit comments

Comments
 (0)