From dfcc3805122b56db8d70801da313be0e642b1b90 Mon Sep 17 00:00:00 2001 From: sholderbach Date: Thu, 24 Apr 2025 17:43:38 +0200 Subject: [PATCH] Remove unused helper The `StateWorkingSet::global_span_offset()` is never read in Nushell and unlikely to be used elsewhere remove for now --- crates/nu-protocol/src/engine/state_working_set.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/crates/nu-protocol/src/engine/state_working_set.rs b/crates/nu-protocol/src/engine/state_working_set.rs index 4f775543e6..7ec49e879c 100644 --- a/crates/nu-protocol/src/engine/state_working_set.rs +++ b/crates/nu-protocol/src/engine/state_working_set.rs @@ -313,10 +313,6 @@ impl<'a> StateWorkingSet<'a> { } } - pub fn global_span_offset(&self) -> usize { - self.permanent_state.next_span_start() - } - pub fn files(&self) -> impl Iterator { self.permanent_state.files().chain(self.delta.files.iter()) }