diff --git a/src/plugins/remotelinux/rsyncdeploystep.cpp b/src/plugins/remotelinux/rsyncdeploystep.cpp index cde0ec258db..a17de8fa8de 100644 --- a/src/plugins/remotelinux/rsyncdeploystep.cpp +++ b/src/plugins/remotelinux/rsyncdeploystep.cpp @@ -33,8 +33,6 @@ #include #include #include -#include -#include #include #include #include @@ -195,22 +193,6 @@ QString RsyncDeployStep::displayName() return tr("Deploy files via rsync"); } -QString RsyncDeployStep::defaultFlags() -{ - return QString("-av"); -} - -RsyncCommandLine RsyncDeployStep::rsyncCommand(const SshConnection &sshConnection, - const QString &flags) -{ - const QString sshCmdLine = ProcessArgs::joinArgs( - QStringList{SshSettings::sshFilePath().toUserOutput()} - << sshConnection.connectionOptions(SshSettings::sshFilePath()), OsTypeLinux); - const SshConnectionParameters sshParams = sshConnection.connectionParameters(); - return RsyncCommandLine(QStringList{"-e", sshCmdLine, flags}, - sshParams.userName() + '@' + sshParams.host()); -} - } //namespace RemoteLinux #include diff --git a/src/plugins/remotelinux/rsyncdeploystep.h b/src/plugins/remotelinux/rsyncdeploystep.h index 0dd0f5484f7..2a85a216a56 100644 --- a/src/plugins/remotelinux/rsyncdeploystep.h +++ b/src/plugins/remotelinux/rsyncdeploystep.h @@ -28,18 +28,8 @@ #include "abstractremotelinuxdeploystep.h" #include "remotelinux_export.h" -namespace QSsh { class SshConnection; } - namespace RemoteLinux { -class RsyncCommandLine -{ -public: - RsyncCommandLine(const QStringList &o, const QString &h) : options(o), remoteHostSpec(h) {} - const QStringList options; - const QString remoteHostSpec; -}; - class REMOTELINUX_EXPORT RsyncDeployStep : public AbstractRemoteLinuxDeployStep { Q_OBJECT @@ -50,10 +40,6 @@ public: static Utils::Id stepId(); static QString displayName(); - - static QString defaultFlags(); - static RsyncCommandLine rsyncCommand(const QSsh::SshConnection &sshConnection, - const QString &flags); }; } // namespace RemoteLinux