Remove unused functions in OpenRGBClientInfoPage and OpenRGBDialog

This commit is contained in:
Adam Honse
2025-07-12 21:26:08 -05:00
parent 2335259dd6
commit c7d824fbf3
5 changed files with 0 additions and 32 deletions

View File

@@ -284,8 +284,6 @@ int main(int argc, char* argv[])
dlg.AddI2CToolsPage();
}
dlg.AddClientTab();
if(ret_flags & RET_FLAG_START_MINIMIZED)
{
#ifdef _WIN32

View File

@@ -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()
{
/*-----------------------------------------------------*\

View File

@@ -26,8 +26,6 @@ public:
explicit OpenRGBClientInfoPage(QWidget *parent = nullptr);
~OpenRGBClientInfoPage();
void AddClient(NetworkClient* new_client);
public slots:
void UpdateInfo();

View File

@@ -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()
{
/*-----------------------------------------------------*\

View File

@@ -47,7 +47,6 @@ public:
explicit OpenRGBDialog(QWidget *parent = 0);
~OpenRGBDialog();
void AddClient(NetworkClient* new_client);
void AddClientTab();
void AddI2CToolsPage();
void AddServerTab();