diff src/browser/sat_browser/chat.py @ 652:0262fee86375 frontends_multi_profiles

browser_side: MicroblogPanel.accepted_groups (set of unicode) is now built from QuickWidget.targets (set of tuple of unicode)
author souliane <souliane@mailoo.org>
date Fri, 27 Feb 2015 01:11:34 +0100
parents 6d3142b782c3
children 267761bf7f08
line wrap: on
line diff
--- a/src/browser/sat_browser/chat.py	Fri Feb 27 01:08:36 2015 +0100
+++ b/src/browser/sat_browser/chat.py	Fri Feb 27 01:11:34 2015 +0100
@@ -165,20 +165,6 @@
         else:
             self.host.showWarning(*self.getWarningData())
 
-    def matchEntity(self, item, type_=None):
-        """
-        @param entity: target jid as a string or jid.JID instance.
-        @return: True if self matches the given entity
-        """
-        if type_ is None:
-            type_ = self.type
-        entity = item if isinstance(item, jid.JID) else jid.JID(item)
-        try:
-            return self.target.bare == entity.bare and self.type == type_
-        except AttributeError as e:
-            e.include_traceback()
-            return False
-
     def addMenus(self, menu_bar):
         """Add cached menus to the header.