forked from qt-creator/qt-creator
RsyncDeployStep: Get rid of unused methods
Change-Id: If597b7cca7a5913c2c9bab663ddd4fcd098deb59 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
@@ -33,8 +33,6 @@
|
||||
#include <projectexplorer/devicesupport/idevice.h>
|
||||
#include <projectexplorer/runconfigurationaspects.h>
|
||||
#include <projectexplorer/target.h>
|
||||
#include <ssh/sshconnection.h>
|
||||
#include <ssh/sshsettings.h>
|
||||
#include <utils/algorithm.h>
|
||||
#include <utils/processinterface.h>
|
||||
#include <utils/qtcprocess.h>
|
||||
@@ -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 <rsyncdeploystep.moc>
|
||||
|
Reference in New Issue
Block a user