From 4af27f760924f101647a8e7ea38d08a95e93558d Mon Sep 17 00:00:00 2001 From: James Graham Date: Thu, 3 Oct 2024 23:22:48 +0100 Subject: [PATCH] Remove unneeded includes --- src/chatbarcache.cpp | 1 - src/main.cpp | 1 - src/models/roomlistmodel.h | 2 -- src/neochatconnection.cpp | 1 + src/spacehierarchycache.cpp | 1 - 5 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/chatbarcache.cpp b/src/chatbarcache.cpp index 08c33c15a..fa823269a 100644 --- a/src/chatbarcache.cpp +++ b/src/chatbarcache.cpp @@ -7,7 +7,6 @@ #include "chatdocumenthandler.h" #include "eventhandler.h" -#include "messagecontentmodel.h" #include "neochatroom.h" ChatBarCache::ChatBarCache(QObject *parent) diff --git a/src/main.cpp b/src/main.cpp index 9cf981ce0..5e3e8cc57 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -48,7 +48,6 @@ #include "colorschemer.h" #include "controller.h" #include "logger.h" -#include "neochatconfig.h" #include "roommanager.h" #include "sharehandler.h" #include "windowcontroller.h" diff --git a/src/models/roomlistmodel.h b/src/models/roomlistmodel.h index b2c7f268d..ff3cb181f 100644 --- a/src/models/roomlistmodel.h +++ b/src/models/roomlistmodel.h @@ -6,8 +6,6 @@ #include #include -#include "enums/neochatroomtype.h" - class NeoChatRoom; namespace Quotient diff --git a/src/neochatconnection.cpp b/src/neochatconnection.cpp index 8f9fceacd..d5170633b 100644 --- a/src/neochatconnection.cpp +++ b/src/neochatconnection.cpp @@ -518,6 +518,7 @@ QCoro::Task NeoChatConnection::setupPushNotifications(QString endpoint) qWarning() << "There's no gateway, not setting up push notifications."; } #else + Q_UNUSED(endpoint) co_return; #endif } diff --git a/src/spacehierarchycache.cpp b/src/spacehierarchycache.cpp index cb9998a19..06628e046 100644 --- a/src/spacehierarchycache.cpp +++ b/src/spacehierarchycache.cpp @@ -11,7 +11,6 @@ #include "neochatconnection.h" #include "neochatroom.h" -#include "roomlistmodel.h" using namespace Quotient;