diff --git a/crates/red_knot_python_semantic/src/types/context.rs b/crates/red_knot_python_semantic/src/types/context.rs index 4a6c24186c..36e1e919f5 100644 --- a/crates/red_knot_python_semantic/src/types/context.rs +++ b/crates/red_knot_python_semantic/src/types/context.rs @@ -81,22 +81,6 @@ impl<'db> InferContext<'db> { self.diagnostics.get_mut().extend(other); } - /// Reports a lint located at `ranged`. - pub(super) fn report_lint_old( - &self, - lint: &'static LintMetadata, - ranged: T, - message: fmt::Arguments, - ) where - T: Ranged, - { - let Some(builder) = self.report_lint(lint, ranged) else { - return; - }; - let mut diag = builder.into_diagnostic(""); - diag.set_primary_message(message); - } - /// Optionally return a builder for a lint diagnostic guard. /// /// If the current context believes a diagnostic should be reported for