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 <QDir>
static const char networkSecurity[] = "ns";
SettingsDialog::SettingsDialog(QWidget* parent, AppConfig& config) :
QDialog(parent, Qt::WindowTitleHint | Qt::WindowSystemMenuHint),
Ui::SettingsDialogBase(),

View File

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

View File

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