From 8f87fcb179421369eee4fdbaae8f25de8a6e9ed7 Mon Sep 17 00:00:00 2001 From: Kartavya Vashishtha Date: Sat, 20 Aug 2022 13:30:25 +0530 Subject: [PATCH] remove push_diagnostic methods weren't used in the end --- crates/hir-def/src/nameres.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/crates/hir-def/src/nameres.rs b/crates/hir-def/src/nameres.rs index a2181a6bf41..45f631936d2 100644 --- a/crates/hir-def/src/nameres.rs +++ b/crates/hir-def/src/nameres.rs @@ -511,14 +511,6 @@ pub fn diagnostics(&self) -> &[DefDiagnostic] { self.diagnostics.as_slice() } - pub fn push_diagnostic(&mut self, d: DefDiagnostic) { - self.diagnostics.push(d) - } - - pub fn push_diagnostics(&mut self, i: impl Iterator) { - self.diagnostics.extend(i) - } - pub fn recursion_limit(&self) -> Option { self.recursion_limit }