From 9a76c30aafdebfeec3e5fa026c85a4be791bd3a0 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Tue, 20 May 2025 16:37:55 -0400 Subject: [PATCH] Remove the unused msgTypeToString function Not sure why it's here, I just came across it and it's unused. --- src/libneochat/neochatroom.cpp | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/src/libneochat/neochatroom.cpp b/src/libneochat/neochatroom.cpp index c9de1d8f5..0402c1a3e 100644 --- a/src/libneochat/neochatroom.cpp +++ b/src/libneochat/neochatroom.cpp @@ -481,30 +481,6 @@ void NeoChatRoom::changeAvatar(const QUrl &localFile) } } -QString msgTypeToString(MessageEventType msgType) -{ - switch (msgType) { - case MessageEventType::Text: - return "m.text"_L1; - case MessageEventType::File: - return "m.file"_L1; - case MessageEventType::Audio: - return "m.audio"_L1; - case MessageEventType::Emote: - return "m.emote"_L1; - case MessageEventType::Image: - return "m.image"_L1; - case MessageEventType::Video: - return "m.video"_L1; - case MessageEventType::Notice: - return "m.notice"_L1; - case MessageEventType::Location: - return "m.location"_L1; - default: - return "m.text"_L1; - } -} - void NeoChatRoom::toggleReaction(const QString &eventId, const QString &reaction) { if (eventId.isEmpty() || reaction.isEmpty()) {