mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2025-12-23 23:37:48 -05:00
Remove unused functions in OpenRGBClientInfoPage and OpenRGBDialog
This commit is contained in:
2
main.cpp
2
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
|
||||
|
||||
@@ -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()
|
||||
{
|
||||
/*-----------------------------------------------------*\
|
||||
|
||||
@@ -26,8 +26,6 @@ public:
|
||||
explicit OpenRGBClientInfoPage(QWidget *parent = nullptr);
|
||||
~OpenRGBClientInfoPage();
|
||||
|
||||
void AddClient(NetworkClient* new_client);
|
||||
|
||||
public slots:
|
||||
void UpdateInfo();
|
||||
|
||||
|
||||
@@ -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()
|
||||
{
|
||||
/*-----------------------------------------------------*\
|
||||
|
||||
@@ -47,7 +47,6 @@ public:
|
||||
explicit OpenRGBDialog(QWidget *parent = 0);
|
||||
~OpenRGBDialog();
|
||||
|
||||
void AddClient(NetworkClient* new_client);
|
||||
void AddClientTab();
|
||||
void AddI2CToolsPage();
|
||||
void AddServerTab();
|
||||
|
||||
Reference in New Issue
Block a user