Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 872a6da

Browse files
committed
Remove an unused function
1 parent 8a746f4 commit 872a6da

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

compiler/rustc_middle/src/ty/generics.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,6 @@ impl GenericParamDef {
7070
}
7171
}
7272

73-
pub fn has_default(&self) -> bool {
74-
match self.kind {
75-
GenericParamDefKind::Type { has_default, .. }
76-
| GenericParamDefKind::Const { has_default } => has_default,
77-
GenericParamDefKind::Lifetime => false,
78-
}
79-
}
80-
8173
pub fn is_anonymous_lifetime(&self) -> bool {
8274
match self.kind {
8375
GenericParamDefKind::Lifetime => {

0 commit comments

Comments
 (0)