summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouis-Francis Ratté-Boulianne <louis-francis.ratte-boulianne@collabora.co.uk>2010-11-09 16:08:23 -0500
committerLouis-Francis Ratté-Boulianne <louis-francis.ratte-boulianne@collabora.co.uk>2010-12-03 15:50:39 -0500
commit9ce7735afcf78dff89764c65232e0074ff7ea020 (patch)
treed3c8abef9a32337f49c1056f814a7d8569cc982e
parent461b8dbd5f528a4827d14b2876256d715ce19ce5 (diff)
caps: utility function to diff capabilities has been moved to tp-python
-rw-r--r--butterfly/capabilities.py25
1 files changed, 0 insertions, 25 deletions
diff --git a/butterfly/capabilities.py b/butterfly/capabilities.py
index ea919da..152cdb4 100644
--- a/butterfly/capabilities.py
+++ b/butterfly/capabilities.py
@@ -149,31 +149,6 @@ class ButterflyCapabilities(
handle = self.ensure_contact_handle(contact)
self._add_default_capabilities([handle])
-
- def _diff_capabilities(self, handle, ctype, new_gen=None,
- new_spec=None, added_gen=None, added_spec=None):
-
- if handle in self._caps and ctype in self._caps[handle]:
- old_gen, old_spec = self._caps[handle][ctype]
- else:
- old_gen = 0
- old_spec = 0
-
- if new_gen is None:
- new_gen = old_gen
- if new_spec is None:
- new_spec = old_spec
- if added_gen:
- new_gen |= added_gen
- if added_spec:
- new_spec |= new_spec
-
- if old_gen != new_gen or old_spec != new_spec:
- diff = (int(handle), ctype, old_gen, new_gen, old_spec, new_spec)
- return diff
-
- return None
-
def _add_default_capabilities(self, contacts_handles):
"""Add the default capabilities to these contacts."""
ret = []