Remove temporary WIP code

This commit is contained in:
Chris Heywood 2020-01-09 20:23:49 +01:00
parent b70a9b4e6e
commit 4f89a593a5
2 changed files with 0 additions and 7 deletions

View file

@ -98,9 +98,6 @@ internal class Application.Controller : Geary.BaseObject {
// Track whether storage cleanup is running
private bool storage_cleanup_running = false;
// Whether we're fully in the background
public bool all_windows_backgrounded { get; private set; default = false; }
/**
* Emitted when an account is added or is enabled.
@ -1789,7 +1786,6 @@ internal class Application.Controller : Geary.BaseObject {
private void on_unfocused_idle() {
// Schedule later, catching cases where work should occur later while still in background
this.all_windows_backgrounded_timeout.reset();
this.all_windows_backgrounded = true;
window_focus_out();
if (!storage_cleanup_running)

View file

@ -551,9 +551,6 @@ private abstract class Geary.ImapEngine.GenericAccount : Geary.Account {
// Continue backgrounded app cleanup work after the first phase,
// old message detachment, has completed
public void app_backgrounded_cleanup_continued(bool messages_detached, GLib.Cancellable? cancellable) {
// TODO bail on remaining work if we've returned from the background
// if (!application.controller.all_windows_backgrounded)
// return;
// Kick off GC, allowing vacuum and forcing reap if we've removed messages
local.db.run_gc.begin(cancellable, messages_detached, this);