Commit 4f89a593 authored by Chris Heywood's avatar Chris Heywood

Remove temporary WIP code

parent b70a9b4e
Pipeline #142465 passed with stages
in 34 minutes and 53 seconds
......@@ -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)
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment