From 6c982df82dbe9061e420d0fecd5202ec431b4d3c Mon Sep 17 00:00:00 2001 From: bjorn3 <17426603+bjorn3@users.noreply.github.com> Date: Tue, 3 Jun 2025 10:00:11 +0000 Subject: [PATCH] Remove get_dbg_loc from DebugInfoBuilderMethods It is only used within cg_llvm. --- src/debuginfo.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/debuginfo.rs b/src/debuginfo.rs index e0597d0030d5..3a265fbc64f8 100644 --- a/src/debuginfo.rs +++ b/src/debuginfo.rs @@ -52,10 +52,6 @@ impl<'a, 'gcc, 'tcx> DebugInfoBuilderMethods for Builder<'a, 'gcc, 'tcx> { fn clear_dbg_loc(&mut self) { self.location = None; } - - fn get_dbg_loc(&self) -> Option { - self.location - } } /// Generate the `debug_context` in an MIR Body.