matrix: Remove unused execute() methods.
This commit is contained in:
parent
9622ccc9d9
commit
2a8cf83f64
2 changed files with 1 additions and 16 deletions
|
@ -150,16 +150,6 @@ class MatrixSendEvent(MatrixEvent):
|
|||
self.message = message
|
||||
MatrixEvent.__init__(self, server)
|
||||
|
||||
def execute(self):
|
||||
tags = [
|
||||
"matrix_message", "notify_none", "no_highlight", "self_msg", "log1"
|
||||
]
|
||||
|
||||
buff = self.server.buffers[self.room_id]
|
||||
room = self.server.rooms[self.room_id]
|
||||
|
||||
self.message.execute(self.server, room, buff, tags)
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls, server, room_id, message, parsed_dict):
|
||||
try:
|
||||
|
|
|
@ -428,12 +428,7 @@ class RoomMessageSimple(RoomMessageEvent):
|
|||
|
||||
|
||||
class RoomMessageUnknown(RoomMessageSimple):
|
||||
|
||||
def execute(self, server, room, buff, tags):
|
||||
msg = ("Unknown message of type {t}, body: {body}").format(
|
||||
t=self.message_type, body=self.message)
|
||||
|
||||
self._print_message(msg, room, buff, tags)
|
||||
pass
|
||||
|
||||
|
||||
class RoomMessageText(RoomMessageEvent):
|
||||
|
|
Loading…
Reference in a new issue