diff options
author | Ćukasz Rymanowski <lukasz.rymanowski@codecoup.pl> | 2015-11-16 21:58:13 +0100 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2015-11-17 16:06:30 +0200 |
commit | 6c0ab27db7b7a566a7946d1f3c1b96022c00c283 (patch) | |
tree | 46f3ec0e376c7bb748ffeea41a392cbe83884011 | |
parent | 1b262cde68fc6ba3d5ac2cd6ec824daaa1f5cbd5 (diff) | |
download | bluez-6c0ab27db7b7a566a7946d1f3c1b96022c00c283.tar.gz |
test/test-discovery: Remove dead code
PropertyChanged is left over from BlueZ 4.x now it is PropertiesChanged.
However in this test it does not make sense to register for this signal
as StopDiscovery is never called from this test.
-rwxr-xr-x | test/test-discovery | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/test/test-discovery b/test/test-discovery index 73b816119..9a2c6b95c 100755 --- a/test/test-discovery +++ b/test/test-discovery @@ -107,10 +107,6 @@ def properties_changed(interface, changed, invalidated, path): else: print_normal(address, devices[path]) -def property_changed(name, value): - if (name == "Discovering" and not value): - mainloop.quit() - if __name__ == '__main__': dbus.mainloop.glib.DBusGMainLoop(set_as_default=True) @@ -141,10 +137,6 @@ if __name__ == '__main__': arg0 = "org.bluez.Device1", path_keyword = "path") - bus.add_signal_receiver(property_changed, - dbus_interface = "org.bluez.Adapter1", - signal_name = "PropertyChanged") - om = dbus.Interface(bus.get_object("org.bluez", "/"), "org.freedesktop.DBus.ObjectManager") objects = om.GetManagedObjects() |