Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-ty/src/generics.rs')
-rw-r--r--crates/hir-ty/src/generics.rs5
1 files changed, 0 insertions, 5 deletions
diff --git a/crates/hir-ty/src/generics.rs b/crates/hir-ty/src/generics.rs
index 26e03aa01a..5f0261437b 100644
--- a/crates/hir-ty/src/generics.rs
+++ b/crates/hir-ty/src/generics.rs
@@ -60,11 +60,6 @@ impl Generics {
self.params.where_predicates().iter()
}
- pub(crate) fn has_no_predicates(&self) -> bool {
- self.params.has_no_predicates()
- && self.parent_generics.as_ref().is_none_or(|g| g.params.has_no_predicates())
- }
-
pub(crate) fn is_empty(&self) -> bool {
self.params.is_empty() && self.parent_generics.as_ref().is_none_or(|g| g.params.is_empty())
}