Remove unused LintExpectationId::get_lint_index.

This commit is contained in:
Nicholas Nethercote
2026-05-14 14:15:55 +10:00
parent 530a73f17e
commit bc127a6a4b
-7
View File
@@ -118,13 +118,6 @@ pub fn is_stable(&self) -> bool {
}
}
pub fn get_lint_index(&self) -> Option<u16> {
let (LintExpectationId::Unstable { lint_index, .. }
| LintExpectationId::Stable { lint_index, .. }) = self;
*lint_index
}
pub fn set_lint_index(&mut self, new_lint_index: Option<u16>) {
let (LintExpectationId::Unstable { lint_index, .. }
| LintExpectationId::Stable { lint_index, .. }) = self;