From a21b68a39a3acfe2f82df274c51afffcfe60fe1c Mon Sep 17 00:00:00 2001 From: link2xt Date: Tue, 16 Mar 2021 04:10:29 +0300 Subject: eventemitter: remove useless incomingEvent signal --- eventemitter.cpp | 1 - eventemitter.h | 1 - qml/ChatPage.qml | 3 --- 3 files changed, 5 deletions(-) diff --git a/eventemitter.cpp b/eventemitter.cpp index 9e37a3d..3a66b75 100644 --- a/eventemitter.cpp +++ b/eventemitter.cpp @@ -31,7 +31,6 @@ DcAccountsEventEmitter::start() void DcAccountsEventEmitter::processEvent(DcEvent *event) { - emit incomingEvent(); switch (event->getId()) { case DC_EVENT_INFO: qInfo("%s", qUtf8Printable(event->getData2Str())); diff --git a/eventemitter.h b/eventemitter.h index c65fb29..4923e21 100644 --- a/eventemitter.h +++ b/eventemitter.h @@ -54,5 +54,4 @@ signals: void incomingMessage(uint32_t accountId, int chatId, int msgId); void messagesChanged(uint32_t accountId, int chatId, int msgId); void messagesNoticed(uint32_t accountId, int chatId); - void incomingEvent(); }; diff --git a/qml/ChatPage.qml b/qml/ChatPage.qml index d0b0318..ecc2383 100644 --- a/qml/ChatPage.qml +++ b/qml/ChatPage.qml @@ -55,9 +55,6 @@ Kirigami.ScrollablePage { Connections { target: chatPage.eventEmitter - function onIncomingEvent() { - console.log("EVENT!") - } function onChatModified() { console.log("CHAT MODIFIED!") } -- cgit v1.2.3-70-g09d2