Commit b1decf2b authored by Philipp Hörist's avatar Philipp Hörist

Remove unused argument

parent c3461a43
Pipeline #3565 failed with stages
in 0 seconds
...@@ -947,7 +947,7 @@ class ChatControl(ChatControlBase): ...@@ -947,7 +947,7 @@ class ChatControl(ChatControlBase):
return app.nicks[self.account] return app.nicks[self.account]
def add_message(self, text, frm='', tim=None, encrypted=None, def add_message(self, text, frm='', tim=None, encrypted=None,
subject=None, xhtml=None, simple=False, xep0184_id=None, subject=None, xhtml=None, xep0184_id=None,
displaymarking=None, msg_log_id=None, correct_id=None, displaymarking=None, msg_log_id=None, correct_id=None,
msg_stanza_id=None, additional_data=None): msg_stanza_id=None, additional_data=None):
""" """
...@@ -988,7 +988,7 @@ class ChatControl(ChatControlBase): ...@@ -988,7 +988,7 @@ class ChatControl(ChatControlBase):
xhtml = '<body xmlns="%s">%s</body>' % (NS_XHTML, xhtml) xhtml = '<body xmlns="%s">%s</body>' % (NS_XHTML, xhtml)
ChatControlBase.add_message(self, text, kind, name, tim, ChatControlBase.add_message(self, text, kind, name, tim,
subject=subject, old_kind=self.old_msg_kind, xhtml=xhtml, subject=subject, old_kind=self.old_msg_kind, xhtml=xhtml,
simple=simple, xep0184_id=xep0184_id, displaymarking=displaymarking, xep0184_id=xep0184_id, displaymarking=displaymarking,
msg_log_id=msg_log_id, msg_stanza_id=msg_stanza_id, msg_log_id=msg_log_id, msg_stanza_id=msg_stanza_id,
correct_id=correct_id, additional_data=additional_data, correct_id=correct_id, additional_data=additional_data,
encrypted=encrypted) encrypted=encrypted)
......
...@@ -932,7 +932,7 @@ class ChatControlBase(MessageControl, ChatCommandProcessor, CommandTools): ...@@ -932,7 +932,7 @@ class ChatControlBase(MessageControl, ChatCommandProcessor, CommandTools):
def add_message(self, text, kind, name, tim, def add_message(self, text, kind, name, tim,
other_tags_for_name=None, other_tags_for_time=None, other_tags_for_text=None, other_tags_for_name=None, other_tags_for_time=None, other_tags_for_text=None,
count_as_new=True, subject=None, old_kind=None, xhtml=None, simple=False, count_as_new=True, subject=None, old_kind=None, xhtml=None,
xep0184_id=None, graphics=True, displaymarking=None, msg_log_id=None, xep0184_id=None, graphics=True, displaymarking=None, msg_log_id=None,
msg_stanza_id=None, correct_id=None, additional_data=None, msg_stanza_id=None, correct_id=None, additional_data=None,
encrypted=None): encrypted=None):
...@@ -958,7 +958,7 @@ class ChatControlBase(MessageControl, ChatCommandProcessor, CommandTools): ...@@ -958,7 +958,7 @@ class ChatControlBase(MessageControl, ChatCommandProcessor, CommandTools):
textview.print_conversation_line(text, kind, name, tim, textview.print_conversation_line(text, kind, name, tim,
other_tags_for_name, other_tags_for_time, other_tags_for_text, other_tags_for_name, other_tags_for_time, other_tags_for_text,
subject, old_kind, xhtml, simple=simple, graphics=graphics, subject, old_kind, xhtml, graphics=graphics,
displaymarking=displaymarking, msg_stanza_id=msg_stanza_id, displaymarking=displaymarking, msg_stanza_id=msg_stanza_id,
correct_id=correct_id, additional_data=additional_data, correct_id=correct_id, additional_data=additional_data,
encrypted=encrypted) encrypted=encrypted)
......
...@@ -938,7 +938,7 @@ class ConversationTextview(GObject.GObject): ...@@ -938,7 +938,7 @@ class ConversationTextview(GObject.GObject):
def print_conversation_line(self, text, kind, name, tim, def print_conversation_line(self, text, kind, name, tim,
other_tags_for_name=None, other_tags_for_time=None, other_tags_for_text=None, other_tags_for_name=None, other_tags_for_time=None, other_tags_for_text=None,
subject=None, old_kind=None, xhtml=None, simple=False, graphics=True, subject=None, old_kind=None, xhtml=None, graphics=True,
displaymarking=None, msg_stanza_id=None, correct_id=None, additional_data=None, displaymarking=None, msg_stanza_id=None, correct_id=None, additional_data=None,
encrypted=None): encrypted=None):
""" """
...@@ -1017,8 +1017,8 @@ class ConversationTextview(GObject.GObject): ...@@ -1017,8 +1017,8 @@ class ConversationTextview(GObject.GObject):
self.print_encryption_status(iter_, additional_data) self.print_encryption_status(iter_, additional_data)
# print the time stamp # print the time stamp
self.print_time(text, kind, tim, simple, direction_mark, self.print_time(text, kind, tim, direction_mark,
other_tags_for_time, iter_) other_tags_for_time, iter_)
# If there's a displaymarking, print it here. # If there's a displaymarking, print it here.
if displaymarking: if displaymarking:
...@@ -1189,12 +1189,12 @@ class ConversationTextview(GObject.GObject): ...@@ -1189,12 +1189,12 @@ class ConversationTextview(GObject.GObject):
trust = additional_data.get_value('encrypted', 'trust') trust = additional_data.get_value('encrypted', 'trust')
return name, fingerprint, trust return name, fingerprint, trust
def print_time(self, text, kind, tim, simple, direction_mark, other_tags_for_time, iter_): def print_time(self, text, kind, tim, direction_mark, other_tags_for_time, iter_):
local_tim = time.localtime(tim) local_tim = time.localtime(tim)
buffer_ = self.tv.get_buffer() buffer_ = self.tv.get_buffer()
current_print_time = app.config.get('print_time') current_print_time = app.config.get('print_time')
if current_print_time == 'always' and not simple: if current_print_time == 'always':
timestamp_str = self.get_time_to_show(local_tim, direction_mark) timestamp_str = self.get_time_to_show(local_tim, direction_mark)
timestamp = time.strftime(timestamp_str, local_tim) timestamp = time.strftime(timestamp_str, local_tim)
timestamp = direction_mark + timestamp + direction_mark timestamp = direction_mark + timestamp + direction_mark
...@@ -1203,7 +1203,7 @@ class ConversationTextview(GObject.GObject): ...@@ -1203,7 +1203,7 @@ class ConversationTextview(GObject.GObject):
*other_tags_for_time) *other_tags_for_time)
else: else:
buffer_.insert(iter_, timestamp) buffer_.insert(iter_, timestamp)
elif current_print_time == 'sometimes' and not simple: elif current_print_time == 'sometimes':
every_foo_seconds = 60 * app.config.get( every_foo_seconds = 60 * app.config.get(
'print_ichat_every_foo_minutes') 'print_ichat_every_foo_minutes')
seconds_passed = tim - self.last_time_printout seconds_passed = tim - self.last_time_printout
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment