solid: remove unused Solid::Backends::UDev::UDevDevice::device() method

return the same as Solid::Backends::UDev::UDevDevice::devicePath() too

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2023-09-08 07:29:18 +03:00
parent d519e61cb5
commit 2da2e7ddb6
3 changed files with 0 additions and 12 deletions

View file

@ -661,11 +661,6 @@ QObject *UDevDevice::createDeviceInterface(const Solid::DeviceInterface::Type &t
}
}
QString UDevDevice::device() const
{
return devicePath();
}
QString UDevDevice::deviceProperty(const QByteArray &key) const
{
const QString res = m_device.deviceProperty(key);

View file

@ -51,7 +51,6 @@ public:
virtual bool queryDeviceInterface(const Solid::DeviceInterface::Type &type) const;
virtual QObject *createDeviceInterface(const Solid::DeviceInterface::Type &type);
QString device() const;
QString deviceProperty(const QByteArray &key) const;
bool devicePropertyExists(const QByteArray &key) const;
QString deviceName() const;

View file

@ -112,8 +112,6 @@ namespace Solid
*/
~Device();
/**
* Assigns a device to this device and returns a reference to it.
*
@ -130,7 +128,6 @@ namespace Solid
*/
bool isValid() const;
/**
* Retrieves the Universal Device Identifier (UDI).
*
@ -153,7 +150,6 @@ namespace Solid
*/
QString parentUdi() const;
/**
* Retrieves the parent of the Device.
*
@ -162,8 +158,6 @@ namespace Solid
*/
Device parent() const;
/**
* Retrieves the name of the device vendor.
*