From 1981c50c8fbef4f2fdb6f8d8d8a570394d3b8581 Mon Sep 17 00:00:00 2001 From: Ian Manske Date: Tue, 16 Jul 2024 09:28:31 +0000 Subject: [PATCH] Remove unused field in `StateWorkingSet` (#13387) # Description Removes the unused `external_commands` field from `StateWorkingSet`. --- crates/nu-protocol/src/engine/state_working_set.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/crates/nu-protocol/src/engine/state_working_set.rs b/crates/nu-protocol/src/engine/state_working_set.rs index af1085c1ee..822bf35e3a 100644 --- a/crates/nu-protocol/src/engine/state_working_set.rs +++ b/crates/nu-protocol/src/engine/state_working_set.rs @@ -25,7 +25,6 @@ use crate::{PluginIdentity, PluginRegistryItem, RegisteredPlugin}; pub struct StateWorkingSet<'a> { pub permanent_state: &'a EngineState, pub delta: StateDelta, - pub external_commands: Vec>, pub files: FileStack, /// Whether or not predeclarations are searched when looking up a command (used with aliases) pub search_predecls: bool, @@ -46,7 +45,6 @@ impl<'a> StateWorkingSet<'a> { Self { delta: StateDelta::new(permanent_state), permanent_state, - external_commands: vec![], files, search_predecls: true, parse_errors: vec![],