From e211ff6a296bbd4281c18228617d091e7e8de4fd Mon Sep 17 00:00:00 2001 From: Maxim Onciul Date: Wed, 11 Sep 2024 11:53:40 +0200 Subject: [PATCH] chore: cleanup leftovers from merge --- src/engine.rs | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/engine.rs b/src/engine.rs index 5cbf5cdc..5ea946ae 100644 --- a/src/engine.rs +++ b/src/engine.rs @@ -250,15 +250,6 @@ impl Reedline { } } - /// Setup a queue for reedline events that can be written from other places. - pub fn with_reedline_event_queue( - mut self, - reedline_events: Arc>>, - ) -> Self { - self.reedline_event_queue = reedline_events; - self - } - /// Get a new history session id based on the current time and the first commit datetime of reedline pub fn create_history_session_id() -> Option { let nanos = match SystemTime::now().duration_since(SystemTime::UNIX_EPOCH) { @@ -813,12 +804,6 @@ impl Reedline { reedline_events.push(ReedlineEvent::Edit(ec)); } - if let Ok(mut queue) = self.reedline_event_queue.lock() { - for event in queue.drain(..) { - reedline_events.push(event); - } - } - for event in reedline_events.drain(..) { match self.handle_event(prompt, event)? { EventStatus::Exits(signal) => {