diff options
author | charles kerr <charlesk@canonical.com> | 2015-12-20 11:06:24 -0600 |
---|---|---|
committer | charles kerr <charlesk@canonical.com> | 2015-12-20 11:06:24 -0600 |
commit | 08993677a2af7f6dd60e82bd600a7f6628503556 (patch) | |
tree | 0bc4072050841ec85bbf40fb3f18595b11da5a8f | |
parent | 293a8bb879ffdf974a204bc4f6e3c84b51c21793 (diff) | |
download | ayatana-indicator-sound-08993677a2af7f6dd60e82bd600a7f6628503556.tar.gz ayatana-indicator-sound-08993677a2af7f6dd60e82bd600a7f6628503556.tar.bz2 ayatana-indicator-sound-08993677a2af7f6dd60e82bd600a7f6628503556.zip |
remove _active_port_headphone field from volume-control-pulse
-rw-r--r-- | src/volume-control-pulse.vala | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/volume-control-pulse.vala b/src/volume-control-pulse.vala index 56cfba7..2ecf7d0 100644 --- a/src/volume-control-pulse.vala +++ b/src/volume-control-pulse.vala @@ -83,7 +83,6 @@ public class VolumeControlPulse : VolumeControl private uint _accountservice_volume_timer = 0; private bool _send_next_local_volume = false; private double _account_service_volume = 0.0; - private bool _active_port_headphone = false; private VolumeControl.ActiveOutput _active_output = VolumeControl.ActiveOutput.SPEAKERS; /** true when a microphone is active **/ @@ -140,7 +139,6 @@ public class VolumeControlPulse : VolumeControl (sink.active_port != null && (sink.active_port.name.contains("headset") || sink.active_port.name.contains("headphone")))) { - _active_port_headphone = true; // check if it's a bluetooth device var device_bus = sink.proplist.gets ("device.bus"); if (device_bus != null && device_bus == "bluetooth") { @@ -154,7 +152,6 @@ public class VolumeControlPulse : VolumeControl } } else { // speaker - _active_port_headphone = false; var device_bus = sink.proplist.gets ("device.bus"); if (device_bus != null && device_bus == "bluetooth") { ret_output = VolumeControl.ActiveOutput.BLUETOOTH_SPEAKER; |