Skip to content

Commit 52d8397

Browse files
committed
Remove AttributesExt::other_attrs.
It's unused.
1 parent 6cd40d0 commit 52d8397

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/librustdoc/clean/types.rs

-6
Original file line numberDiff line numberDiff line change
@@ -820,8 +820,6 @@ pub(crate) trait AttributesExt {
820820

821821
fn inner_docs(&self) -> bool;
822822

823-
fn other_attrs(&self) -> Vec<ast::Attribute>;
824-
825823
fn cfg(&self, tcx: TyCtxt<'_>, hidden_cfg: &FxHashSet<Cfg>) -> Option<Arc<Cfg>>;
826824
}
827825

@@ -848,10 +846,6 @@ impl AttributesExt for [ast::Attribute] {
848846
self.iter().find(|a| a.doc_str().is_some()).map_or(true, |a| a.style == AttrStyle::Inner)
849847
}
850848

851-
fn other_attrs(&self) -> Vec<ast::Attribute> {
852-
self.iter().filter(|attr| attr.doc_str().is_none()).cloned().collect()
853-
}
854-
855849
fn cfg(&self, tcx: TyCtxt<'_>, hidden_cfg: &FxHashSet<Cfg>) -> Option<Arc<Cfg>> {
856850
let sess = tcx.sess;
857851
let doc_cfg_active = tcx.features().doc_cfg;

0 commit comments

Comments
 (0)