Remove unused variables

This commit is contained in:
Daniel Seither 2019-11-19 12:01:37 +01:00
parent 9080ce451b
commit da3876325d
3 changed files with 3 additions and 6 deletions

View File

@ -31,8 +31,6 @@
#include <QFileDialog> #include <QFileDialog>
#include <QDir> #include <QDir>
static const char networkSecurity[] = "ns";
SettingsDialog::SettingsDialog(QWidget* parent, AppConfig& config) : SettingsDialog::SettingsDialog(QWidget* parent, AppConfig& config) :
QDialog(parent, Qt::WindowTitleHint | Qt::WindowSystemMenuHint), QDialog(parent, Qt::WindowTitleHint | Qt::WindowSystemMenuHint),
Ui::SettingsDialogBase(), Ui::SettingsDialogBase(),
@ -136,4 +134,4 @@ void SettingsDialog::on_m_pComboLanguage_currentIndexChanged(int index)
{ {
QString ietfCode = m_pComboLanguage->itemData(index).toString(); QString ietfCode = m_pComboLanguage->itemData(index).toString();
QBarrierApplication::getInstance()->switchTranslator(ietfCode); QBarrierApplication::getInstance()->switchTranslator(ietfCode);
} }

View File

@ -690,7 +690,6 @@ ArchNetworkBSD::nameToAddr(const std::string& name)
// allocate address // allocate address
ArchNetAddressImpl* addr = new ArchNetAddressImpl; ArchNetAddressImpl* addr = new ArchNetAddressImpl;
char ipstr[INET6_ADDRSTRLEN];
struct addrinfo hints; struct addrinfo hints;
struct addrinfo *p; struct addrinfo *p;
int ret; int ret;

View File

@ -684,9 +684,9 @@ ServerApp::handleNoClients(const Event&, void*)
void void
ServerApp::handleScreenSwitched(const Event& e, void*) ServerApp::handleScreenSwitched(const Event& e, void*)
{ {
Server::SwitchToScreenInfo* info = (Server::SwitchToScreenInfo*)(e.getData());
#ifdef WINAPI_XWINDOWS #ifdef WINAPI_XWINDOWS
Server::SwitchToScreenInfo* info = (Server::SwitchToScreenInfo*)(e.getData());
if (!args().m_screenChangeScript.empty()) { if (!args().m_screenChangeScript.empty()) {
LOG((CLOG_INFO "Running shell script for screen \"%s\"", info->m_screen)); LOG((CLOG_INFO "Running shell script for screen \"%s\"", info->m_screen));