diff --git a/main.cpp b/main.cpp index 473c4d45..592609b5 100644 --- a/main.cpp +++ b/main.cpp @@ -284,8 +284,6 @@ int main(int argc, char* argv[]) dlg.AddI2CToolsPage(); } - dlg.AddClientTab(); - if(ret_flags & RET_FLAG_START_MINIMIZED) { #ifdef _WIN32 diff --git a/qt/OpenRGBClientInfoPage/OpenRGBClientInfoPage.cpp b/qt/OpenRGBClientInfoPage/OpenRGBClientInfoPage.cpp index f5654f6a..63cfa124 100644 --- a/qt/OpenRGBClientInfoPage/OpenRGBClientInfoPage.cpp +++ b/qt/OpenRGBClientInfoPage/OpenRGBClientInfoPage.cpp @@ -67,22 +67,6 @@ void OpenRGBClientInfoPage::changeEvent(QEvent *event) } } -void OpenRGBClientInfoPage::AddClient(NetworkClient* new_client) -{ - /*-----------------------------------------------------*\ - | Add a new client to the list, register the callback, | - | and update the information view if the pointer is | - | valid | - \*-----------------------------------------------------*/ - if(new_client != NULL) - { - ResourceManager::get()->GetClients().push_back(new_client); - new_client->RegisterClientInfoChangeCallback(UpdateInfoCallback, this); - - UpdateInfo(); - } -} - void OpenRGBClientInfoPage::UpdateInfo() { /*-----------------------------------------------------*\ diff --git a/qt/OpenRGBClientInfoPage/OpenRGBClientInfoPage.h b/qt/OpenRGBClientInfoPage/OpenRGBClientInfoPage.h index 8f13646f..378d0334 100644 --- a/qt/OpenRGBClientInfoPage/OpenRGBClientInfoPage.h +++ b/qt/OpenRGBClientInfoPage/OpenRGBClientInfoPage.h @@ -26,8 +26,6 @@ public: explicit OpenRGBClientInfoPage(QWidget *parent = nullptr); ~OpenRGBClientInfoPage(); - void AddClient(NetworkClient* new_client); - public slots: void UpdateInfo(); diff --git a/qt/OpenRGBDialog/OpenRGBDialog.cpp b/qt/OpenRGBDialog/OpenRGBDialog.cpp index e9d385fd..2744b117 100644 --- a/qt/OpenRGBDialog/OpenRGBDialog.cpp +++ b/qt/OpenRGBDialog/OpenRGBDialog.cpp @@ -956,17 +956,6 @@ void OpenRGBDialog::AddClientTab() } } -void OpenRGBDialog::AddClient(NetworkClient* new_client) -{ - /*-----------------------------------------------------*\ - | Add a client to the client information page | - \*-----------------------------------------------------*/ - if(ClientInfoPage != NULL) - { - ClientInfoPage->AddClient(new_client); - } -} - void OpenRGBDialog::AddServerTab() { /*-----------------------------------------------------*\ diff --git a/qt/OpenRGBDialog/OpenRGBDialog.h b/qt/OpenRGBDialog/OpenRGBDialog.h index 27454d53..5edce2a8 100644 --- a/qt/OpenRGBDialog/OpenRGBDialog.h +++ b/qt/OpenRGBDialog/OpenRGBDialog.h @@ -47,7 +47,6 @@ public: explicit OpenRGBDialog(QWidget *parent = 0); ~OpenRGBDialog(); - void AddClient(NetworkClient* new_client); void AddClientTab(); void AddI2CToolsPage(); void AddServerTab();