diff options
author | Jarek Kobus <jaroslaw.kobus@qt.io> | 2022-05-11 17:28:41 +0200 |
---|---|---|
committer | Jarek Kobus <jaroslaw.kobus@qt.io> | 2022-05-23 11:51:35 +0000 |
commit | edd9ddcd758a2d17d65ad5cfca1736f267677b22 (patch) | |
tree | 5069242fecc7eec7f8c8c1f92c21c4404116a487 /src/libs/ssh/sshconnection.cpp | |
parent | 283cd4690ff5b37c5b12bc83cb237302c8b36722 (diff) | |
download | qt-creator-edd9ddcd758a2d17d65ad5cfca1736f267677b22.tar.gz |
Get rid of SftpTransfer
Remove also sftpdefs.h. They are not used anymore.
Change-Id: I6c45a70cec2e01afdd1a668068e090f5d4abde9b
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'src/libs/ssh/sshconnection.cpp')
-rw-r--r-- | src/libs/ssh/sshconnection.cpp | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/libs/ssh/sshconnection.cpp b/src/libs/ssh/sshconnection.cpp index 8cd9f2431b..0db38cf54c 100644 --- a/src/libs/ssh/sshconnection.cpp +++ b/src/libs/ssh/sshconnection.cpp @@ -25,7 +25,6 @@ #include "sshconnection.h" -#include "sftptransfer.h" #include "sshlogging_p.h" #include "sshsettings.h" @@ -198,8 +197,6 @@ struct SshConnection::SshConnectionPrivate SshConnection::SshConnection(const SshConnectionParameters &serverInfo, QObject *parent) : QObject(parent), d(new SshConnectionPrivate(serverInfo)) { - qRegisterMetaType<QSsh::SftpFileInfo>("QSsh::SftpFileInfo"); - qRegisterMetaType<QList <QSsh::SftpFileInfo> >("QList<QSsh::SftpFileInfo>"); connect(&d->masterProcess, &QtcProcess::readyReadStandardOutput, [this] { const QByteArray reply = d->masterProcess.readAllStandardOutput(); if (reply == "\n") @@ -287,16 +284,6 @@ SshConnection::~SshConnection() delete d; } -SftpTransferPtr SshConnection::createUpload(const FilesToTransfer &files) -{ - return setupTransfer(files, Internal::FileTransferType::Upload); -} - -SftpTransferPtr SshConnection::createDownload(const FilesToTransfer &files) -{ - return setupTransfer(files, Internal::FileTransferType::Download); -} - void SshConnection::doConnectToHost() { if (d->state != Connecting) @@ -353,14 +340,6 @@ void SshConnection::emitDisconnected() emit disconnected(); } -SftpTransferPtr SshConnection::setupTransfer(const FilesToTransfer &files, - Internal::FileTransferType type) -{ - QTC_ASSERT(state() == Connected, return SftpTransferPtr()); - return SftpTransferPtr(new SftpTransfer(files, type, - d->connectionArgs(SshSettings::sftpFilePath()))); -} - #ifdef WITH_TESTS namespace SshTest { const QString getHostFromEnvironment() |