From 2a8cf83f64ea575be13ce11914fce2024c3cc4db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Fri, 13 Jul 2018 14:26:08 +0200 Subject: [PATCH] matrix: Remove unused execute() methods. --- matrix/events.py | 10 ---------- matrix/rooms.py | 7 +------ 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/matrix/events.py b/matrix/events.py index 0a38034..90b78a1 100644 --- a/matrix/events.py +++ b/matrix/events.py @@ -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: diff --git a/matrix/rooms.py b/matrix/rooms.py index 09e61a4..07f9ef6 100644 --- a/matrix/rooms.py +++ b/matrix/rooms.py @@ -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):