summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2013-09-23 16:06:05 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2013-09-24 12:13:12 +0100
commitc09d8cc051fb21e698870d4b7fc9771ed55f965c (patch)
treef43bd5339791a4b484c2c87ab16fe3ebdeffc1ed
parentb4af6fba89fe7b9a45c19ad6caae7244a3891a34 (diff)
downloadtelepathy-haze-c09d8cc051fb21e698870d4b7fc9771ed55f965c.tar.gz
Remove unused function close_all_groups()
This was the last reference to Handle_Type_Contact_List, Handle_Type_Contact_Group or Chan.T.ContactList outside constants.py. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=49389 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
-rw-r--r--tests/twisted/hazetest.py11
-rw-r--r--tests/twisted/roster/groups.py2
-rw-r--r--tests/twisted/roster/publish.py2
-rw-r--r--tests/twisted/roster/subscribe.py2
4 files changed, 3 insertions, 14 deletions
diff --git a/tests/twisted/hazetest.py b/tests/twisted/hazetest.py
index 7df7f3d..e03c58c 100644
--- a/tests/twisted/hazetest.py
+++ b/tests/twisted/hazetest.py
@@ -74,14 +74,3 @@ def exec_test(fun, params=None, protocol=EmptyRosterXmppXmlStream, timeout=None,
exec_test_deferred, fun, params, protocol, timeout, authenticator, num_instances,
do_connect, make_haze_connection, expect_kinda_connected)
reactor.run()
-
-def close_all_groups(q, bus, conn, stream):
- channels = conn.Properties.Get(cs.CONN_IFACE_REQUESTS, 'Channels')
- for path, props in channels:
- if props.get(cs.CHANNEL_TYPE) != cs.CHANNEL_TYPE_CONTACT_LIST:
- continue
- if props.get(cs.TARGET_HANDLE_TYPE) != cs.HT_GROUP:
- continue
- wrap_channel(bus.get_object(conn.bus_name, path),
- cs.CHANNEL_TYPE_CONTACT_LIST).Close()
-
diff --git a/tests/twisted/roster/groups.py b/tests/twisted/roster/groups.py
index 3e2dfee..0ded827 100644
--- a/tests/twisted/roster/groups.py
+++ b/tests/twisted/roster/groups.py
@@ -9,7 +9,7 @@ from twisted.words.xish import domish, xpath
from servicetest import (EventPattern, wrap_channel, assertLength,
assertEquals, call_async, sync_dbus, assertContains, assertSameSets)
-from hazetest import acknowledge_iq, exec_test, sync_stream, close_all_groups
+from hazetest import acknowledge_iq, exec_test, sync_stream
import constants as cs
import ns
diff --git a/tests/twisted/roster/publish.py b/tests/twisted/roster/publish.py
index 3b97cbb..df88ce2 100644
--- a/tests/twisted/roster/publish.py
+++ b/tests/twisted/roster/publish.py
@@ -9,7 +9,7 @@ from twisted.words.xish import domish
from servicetest import (EventPattern, wrap_channel, assertLength,
assertEquals, call_async, sync_dbus, assertSameSets)
-from hazetest import acknowledge_iq, exec_test, sync_stream, close_all_groups
+from hazetest import acknowledge_iq, exec_test, sync_stream
import constants as cs
import ns
diff --git a/tests/twisted/roster/subscribe.py b/tests/twisted/roster/subscribe.py
index b736d0d..b39f86e 100644
--- a/tests/twisted/roster/subscribe.py
+++ b/tests/twisted/roster/subscribe.py
@@ -8,7 +8,7 @@ from twisted.words.xish import domish
from servicetest import (EventPattern, wrap_channel, assertLength,
assertEquals, call_async, sync_dbus)
-from hazetest import acknowledge_iq, exec_test, sync_stream, close_all_groups
+from hazetest import acknowledge_iq, exec_test, sync_stream
import constants as cs
import ns