From 74fb5f85b3c7fd5023a7ca0190542a18fc16fafa Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Sun, 14 Aug 2022 11:45:49 +0200 Subject: [PATCH] Remove the Clean trait --- src/librustdoc/clean/mod.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/librustdoc/clean/mod.rs b/src/librustdoc/clean/mod.rs index 23141e3ca4d..971617a8400 100644 --- a/src/librustdoc/clean/mod.rs +++ b/src/librustdoc/clean/mod.rs @@ -44,10 +44,6 @@ pub(crate) use self::types::*; pub(crate) use self::utils::{get_auto_trait_and_blanket_impls, krate, register_res}; -pub(crate) trait Clean<'tcx, T> { - fn clean(&self, cx: &mut DocContext<'tcx>) -> T; -} - pub(crate) fn clean_doc_module<'tcx>(doc: &DocModule<'tcx>, cx: &mut DocContext<'tcx>) -> Item { let mut items: Vec = vec![]; let mut inserted = FxHashSet::default();