From 810478f68bb969a75406cb5d8a09722ed9b99ba2 Mon Sep 17 00:00:00 2001 From: Andrew Gallant Date: Tue, 22 Apr 2025 10:51:42 -0400 Subject: [PATCH] red_knot_python_semantic: remove last vestige of old diagnostics! --- .../src/types/context.rs | 16 ---------------- 1 file changed, 16 deletions(-) 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