From 7cc1f182dd3c662e1bc8fdf0eed72bbbde3283a0 Mon Sep 17 00:00:00 2001 From: charles kerr Date: Mon, 28 Dec 2015 15:58:05 -0600 Subject: remove unneeded idle timer from volume-warning --- src/volume-warning.vala | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/src/volume-warning.vala b/src/volume-warning.vala index 9a51d04..80313a8 100644 --- a/src/volume-warning.vala +++ b/src/volume-warning.vala @@ -99,7 +99,6 @@ public class VolumeWarning : Object private void stop_all_timers() { stop_high_volume_approved_timer(); - stop_show_timeout(); } /*** @@ -426,27 +425,6 @@ public class VolumeWarning : Object private PulseAudio.Volume _ok_volume = PulseAudio.Volume.INVALID; - private uint _show_timeout = 0; - - private void stop_show_timeout() { - if (_show_timeout != 0) { - Source.remove(_show_timeout); - _show_timeout = 0; - } - } - - private void show_soon() { - const uint interval_msec = 200; - if (_show_timeout == 0) - _show_timeout = Timeout.add(interval_msec, show_idle); - } - - private bool show_idle() { - _show_timeout = 0; - this.show(); - return false; // Source.REMOVE; - } - protected virtual void preshow() { _warning_sink_input_index = _multimedia_sink_input_index; } -- cgit v1.2.3