chore: remove dead code and get rid of MSVC warnings (#6024)

This commit is contained in:
nerix
2025-03-03 13:30:11 +01:00
committed by GitHub
parent d7166fae9f
commit cd8247f921
7 changed files with 9 additions and 46 deletions
@@ -2,12 +2,10 @@
#include "Application.hpp"
#include "common/Channel.hpp"
#include "common/network/NetworkResult.hpp"
#include "controllers/accounts/AccountController.hpp"
#include "controllers/commands/CommandContext.hpp"
#include "messages/Message.hpp"
#include "messages/MessageBuilder.hpp"
#include "providers/twitch/api/Helix.hpp"
#include "providers/twitch/TwitchAccount.hpp"
#include "providers/twitch/TwitchChannel.hpp"
@@ -91,7 +89,7 @@ QString deleteOneMessage(const CommandContext &ctx)
return "";
}
auto msg = ctx.channel->findMessage(messageID);
auto msg = ctx.channel->findMessageByID(messageID);
if (msg != nullptr)
{
if (msg->loginName == ctx.channel->getName() &&