Removed unused 'lc::Client::display_ping_string(..)' functionality

remotes/origin/HEAD
markuspg 8 years ago
parent c565279033
commit ce18a6129e

@ -46,7 +46,6 @@ lc::Client::Client( const QString &argIP, const QString &argMAC, const QString &
pinger, &ClientPinger::doPing );
connect( pinger, &ClientPinger::PingFinished,
this, &Client::GotStatusChanged );
// connect(pinger, &ClientPinger::ping_string, this, &Client::display_ping_string);
pingerThread.start();
pingTimer = new QTimer{ this };
@ -121,11 +120,6 @@ void lc::Client::DeactiveScreensaver() {
qDebug() << settings->sshCmd << arguments.join( " " );
}
// void Client::display_ping_string(QString *ping_string) {
// debug_messages_text_edit->appendPlainText("[DEBUG] " + *ping_string);
// delete ping_string;
// }
void lc::Client::GotStatusChanged( state_t argState ) {
if ( ( protectedCycles > 0 ) && ( state == state_t::BOOTING ) && ( argState != state_t::RESPONDING ) ) {
return;
@ -183,7 +177,8 @@ void lc::Client::OpenTerminal( const QString &argCommand, const bool &argOpenAsR
+ settings->userNameOnClients + "@" + ip };
} else {
*arguments << "--title" << name << "-e" <<
QString{ settings->sshCmd + " -i " + settings->pkeyPathRoot + " " + "root@" + ip };
QString{ settings->sshCmd + " -i " + settings->pkeyPathRoot
+ " " + "root@" + ip };
}
if ( settings->termEmulCmd.contains( "konsole" ) ) {
@ -242,7 +237,8 @@ void lc::Client::ShowDesktop() {
}
void lc::Client::Shutdown() {
if ( state == state_t::NOT_RESPONDING || state == state_t::BOOTING || state == state_t::SHUTTING_DOWN ) {
if ( state == state_t::NOT_RESPONDING || state == state_t::BOOTING
|| state == state_t::SHUTTING_DOWN ) {
return;
}
QStringList arguments;

@ -121,7 +121,6 @@ private:
QTimer *pingTimer = nullptr; //! QTimer used to trigger pings by pinger's ClientPinger instance
private slots:
// void display_ping_string(QString *ping_string);
void GotStatusChanged( state_t argState );
void RequestAPing();

@ -54,7 +54,6 @@ void lc::ClientPinger::doPing() {
if ( newState != state ) {
state = newState;
// emit ping_string(new QString(name + *ping_command + " " + ping_arguments->join(" ")));
emit PingFinished( newState );
}
}

@ -61,7 +61,6 @@ private:
signals:
//! This signal was just implemented for testing purposes
// void ping_string(QString *string);
//! This signal is emitted if the ping finished and the state of the client changed
void PingFinished( state_t state );
};

Loading…
Cancel
Save