Remove unused name method

This commit is contained in:
Albert Vaca Cintora 2023-06-01 10:53:46 +02:00
parent f138a0f07a
commit fbaf5ade71
7 changed files with 0 additions and 20 deletions

View file

@ -33,11 +33,6 @@ BluetoothDeviceLink::BluetoothDeviceLink(const QString &deviceId,
connect(socket.data(), &MultiplexChannel::aboutToClose, this, &QObject::deleteLater);
}
QString BluetoothDeviceLink::name()
{
return QStringLiteral("BluetoothLink"); // Should be same in both android and kde version
}
bool BluetoothDeviceLink::sendPacket(NetworkPacket &np)
{
if (np.hasPayload()) {

View file

@ -25,7 +25,6 @@ class KDECONNECTCORE_EXPORT BluetoothDeviceLink : public DeviceLink
public:
BluetoothDeviceLink(const QString &deviceId, LinkProvider *parent, ConnectionMultiplexer *connection, QSharedPointer<MultiplexChannel> socket);
virtual QString name() override;
bool sendPacket(NetworkPacket &np) override;
QSslCertificate certificate() const override;

View file

@ -26,8 +26,6 @@ public:
DeviceLink(const QString &deviceId, LinkProvider *parent);
~DeviceLink() override = default;
virtual QString name() = 0;
const QString &deviceId() const
{
return m_deviceId;

View file

@ -62,11 +62,6 @@ QHostAddress LanDeviceLink::hostAddress() const
return addr;
}
QString LanDeviceLink::name()
{
return QStringLiteral("LanLink"); // Should be same in both android and kde version
}
bool LanDeviceLink::sendPacket(NetworkPacket &np)
{
if (np.payload()) {

View file

@ -30,7 +30,6 @@ public:
LanDeviceLink(const QString &deviceId, LinkProvider *parent, QSslSocket *socket, ConnectionStarted connectionSource);
void reset(QSslSocket *socket, ConnectionStarted connectionSource);
QString name() override;
bool sendPacket(NetworkPacket &np) override;
QHostAddress hostAddress() const;

View file

@ -13,11 +13,6 @@ LoopbackDeviceLink::LoopbackDeviceLink(const QString &deviceId, LoopbackLinkProv
{
}
QString LoopbackDeviceLink::name()
{
return QStringLiteral("LoopbackLink");
}
bool LoopbackDeviceLink::sendPacket(NetworkPacket &input)
{
NetworkPacket output((QString()));

View file

@ -18,7 +18,6 @@ class LoopbackDeviceLink : public DeviceLink
public:
LoopbackDeviceLink(const QString &d, LoopbackLinkProvider *a);
QString name() override;
bool sendPacket(NetworkPacket &np) override;
QSslCertificate certificate() const override