From 7c41ca4f51fc539832f541742a380bcf923cc963 Mon Sep 17 00:00:00 2001 From: extrawurst Date: Fri, 13 Jan 2023 14:20:11 +0100 Subject: [PATCH] cleanup --- src/app.rs | 8 -------- src/queue.rs | 2 -- src/tabs/status.rs | 2 +- 3 files changed, 1 insertion(+), 11 deletions(-) diff --git a/src/app.rs b/src/app.rs index 0e0623b7..be0cc917 100644 --- a/src/app.rs +++ b/src/app.rs @@ -851,14 +851,6 @@ impl App { .push(branch, push_type, force, delete)?; flags.insert(NeedsUpdate::ALL); } - InternalEvent::FetchAll => { - if let Err(error) = self.fetch_popup.fetch() { - self.queue.push(InternalEvent::ShowErrorMsg( - error.to_string(), - )); - } - flags.insert(NeedsUpdate::ALL); - } InternalEvent::Pull(branch) => { if let Err(error) = self.pull_popup.fetch(branch) { self.queue.push(InternalEvent::ShowErrorMsg( diff --git a/src/queue.rs b/src/queue.rs index bbf7b2a7..dd033bed 100644 --- a/src/queue.rs +++ b/src/queue.rs @@ -105,8 +105,6 @@ pub enum InternalEvent { /// Push(String, PushType, bool, bool), /// - FetchAll, - /// Pull(String), /// PushTags, diff --git a/src/tabs/status.rs b/src/tabs/status.rs index 49133b07..428daef0 100644 --- a/src/tabs/status.rs +++ b/src/tabs/status.rs @@ -596,7 +596,7 @@ impl Status { fn fetch(&self) { if self.can_pull() { - self.queue.push(InternalEvent::FetchAll); + self.queue.push(InternalEvent::FetchRemotes); } }