Remove unused name method
This commit is contained in:
parent
f138a0f07a
commit
fbaf5ade71
7 changed files with 0 additions and 20 deletions
|
@ -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()) {
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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()) {
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -13,11 +13,6 @@ LoopbackDeviceLink::LoopbackDeviceLink(const QString &deviceId, LoopbackLinkProv
|
|||
{
|
||||
}
|
||||
|
||||
QString LoopbackDeviceLink::name()
|
||||
{
|
||||
return QStringLiteral("LoopbackLink");
|
||||
}
|
||||
|
||||
bool LoopbackDeviceLink::sendPacket(NetworkPacket &input)
|
||||
{
|
||||
NetworkPacket output((QString()));
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue