Philipp Hörist pushed to branch master at gajim / gajim

Commits:
24320c89 by Philipp Hörist at 2017-11-19T14:34:04+01:00
Remove unused code

- - - - -


2 changed files:

- gajim/chat_control_base.py
- gajim/groupchat_control.py


Changes:

=====================================
gajim/chat_control_base.py
=====================================
--- a/gajim/chat_control_base.py
+++ b/gajim/chat_control_base.py
@@ -313,8 +313,6 @@ class ChatControlBase(MessageControl, ChatCommandProcessor, 
CommandTools):
         self.was_at_the_end = True
         self.correcting = False
         self.last_sent_msg = None
-        self.last_received_txt = {} # one per name
-        self.last_received_id = {} # one per name
 
         # add MessageTextView to UI and connect signals
         self.msg_textview = MessageTextView()
@@ -970,10 +968,6 @@ class ChatControlBase(MessageControl, 
ChatCommandProcessor, CommandTools):
 
         if not count_as_new:
             return
-        if kind in ('incoming', 'incoming_queue', 'outgoing'):
-            self.last_received_txt[name] = text
-            if correct_id:
-                self.last_received_id[name] = correct_id[0]
         if kind == 'incoming':
             if not self.type_id == message_control.TYPE_GC or \
             app.config.get('notify_on_all_muc_messages') or \


=====================================
gajim/groupchat_control.py
=====================================
--- a/gajim/groupchat_control.py
+++ b/gajim/groupchat_control.py
@@ -1743,13 +1743,6 @@ class GroupchatControl(ChatControlBase):
                         tv.last_received_message_id[obj.new_nick] = \
                             tv.last_received_message_id[obj.nick]
                         del tv.last_received_message_id[obj.nick]
-                    if obj.nick in self.last_received_txt:
-                        self.last_received_txt[obj.new_nick] = \
-                            self.last_received_txt[obj.nick]
-                        del self.last_received_txt[obj.nick]
-                        self.last_received_id[obj.new_nick] = \
-                            self.last_received_id[obj.nick]
-                        del self.last_received_id[obj.nick]
                     # We add new nick to muc roster here, so we don't see
                     # that "new_nick has joined the room" when he just changed
                     # nick.



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/commit/24320c894caf8ee05a8fb27d804fb503bc46db20

---
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/commit/24320c894caf8ee05a8fb27d804fb503bc46db20
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to