Remove unused function in TrayWidget

This commit is contained in:
Martchus 2018-12-23 21:17:24 +01:00
parent cdd78fb026
commit 8b6cf6a282
2 changed files with 0 additions and 9 deletions

View File

@ -530,14 +530,6 @@ bool TrayWidget::applySystemdSettings(bool reconnectRequired)
}
return isServiceRelevant && isServiceRunning;
}
void TrayWidget::connectIfServiceRunning()
{
const auto *const service(SyncthingService::mainInstance());
if (Settings::values().systemd.considerForReconnect && m_connection.isLocal() && service && service->isRunning()) {
m_connection.connect();
}
}
#endif
#ifndef SYNCTHINGWIDGETS_NO_WEBVIEW

View File

@ -78,7 +78,6 @@ private slots:
#ifdef LIB_SYNCTHING_CONNECTOR_SUPPORT_SYSTEMD
bool handleSystemdStatusChanged();
bool applySystemdSettings(bool reconnectRequired = false);
void connectIfServiceRunning();
#endif
#ifndef SYNCTHINGWIDGETS_NO_WEBVIEW
void handleWebViewDeleted();