diff --git a/core/backends/devicelink.h b/core/backends/devicelink.h index c58857986..a5cc3ff3e 100644 --- a/core/backends/devicelink.h +++ b/core/backends/devicelink.h @@ -49,7 +49,6 @@ public: LinkProvider* provider() { return mLinkProvider; } virtual bool sendPackage(NetworkPackage& np) = 0; - virtual bool sendPackageEncrypted(NetworkPackage& np) = 0; //user actions virtual void userRequestsPair() = 0; diff --git a/core/backends/lan/landevicelink.cpp b/core/backends/lan/landevicelink.cpp index 05d62b2cb..1d23cd8db 100644 --- a/core/backends/lan/landevicelink.cpp +++ b/core/backends/lan/landevicelink.cpp @@ -71,7 +71,7 @@ QString LanDeviceLink::name() return "LanLink"; // Should be same in both android and kde version } -bool LanDeviceLink::sendPackageEncrypted(NetworkPackage& np) +bool LanDeviceLink::sendPackage(NetworkPackage& np) { if (np.hasPayload()) { np.setPayloadTransferInfo(sendPayload(np)->transferInfo()); @@ -85,16 +85,6 @@ bool LanDeviceLink::sendPackageEncrypted(NetworkPackage& np) return (written != -1); } -bool LanDeviceLink::sendPackage(NetworkPackage& np) -{ - if (np.hasPayload()) { - np.setPayloadTransferInfo(sendPayload(np)->transferInfo()); - } - - int written = mSocketLineReader->write(np.serialize()); - return (written != -1); -} - UploadJob* LanDeviceLink::sendPayload(NetworkPackage& np) { QVariantMap transferInfo; diff --git a/core/backends/loopback/loopbackdevicelink.cpp b/core/backends/loopback/loopbackdevicelink.cpp index ef9a017a9..e897017a9 100644 --- a/core/backends/loopback/loopbackdevicelink.cpp +++ b/core/backends/loopback/loopbackdevicelink.cpp @@ -34,11 +34,6 @@ QString LoopbackDeviceLink::name() return "LoopbackLink"; // Should be similar to android } -bool LoopbackDeviceLink::sendPackageEncrypted(NetworkPackage& input) -{ - return sendPackage(input); -} - bool LoopbackDeviceLink::sendPackage(NetworkPackage& input) { NetworkPackage output(QString::null); diff --git a/core/backends/loopback/loopbackdevicelink.h b/core/backends/loopback/loopbackdevicelink.h index 3bba5782a..259355901 100644 --- a/core/backends/loopback/loopbackdevicelink.h +++ b/core/backends/loopback/loopbackdevicelink.h @@ -34,7 +34,6 @@ public: virtual QString name() override; virtual bool sendPackage(NetworkPackage& np) override; - virtual bool sendPackageEncrypted(NetworkPackage& np) override; virtual void userRequestsPair() override { setPairStatus(Paired); } virtual void userRequestsUnpair() override { setPairStatus(NotPaired); }