solid: remove unused UdevQt::Client signals

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2023-09-08 06:45:34 +03:00
parent e6aef8e5d5
commit ccfd17a401
2 changed files with 6 additions and 10 deletions

View file

@ -80,8 +80,6 @@ Q_SIGNALS:
void deviceAdded(const UdevQt::Device &dev);
void deviceRemoved(const UdevQt::Device &dev);
void deviceChanged(const UdevQt::Device &dev);
void deviceOnlined(const UdevQt::Device &dev);
void deviceOfflined(const UdevQt::Device &dev);
private Q_SLOTS:
void monitorReadyRead(int fd);

View file

@ -108,15 +108,13 @@ void Client::monitorReadyRead(int fd)
emit deviceRemoved(device);
} else if (action == "change") {
emit deviceChanged(device);
} else if (action == "online") {
emit deviceOnlined(device);
} else if (action == "offline") {
emit deviceOfflined(device);
/*
bind/unbind are driver changing for device type of event, on some systems it appears to be
broken and doing it all the time thus ignore the actions
*/
} else if (action == "online" || action == "offline") {
; // nada
} else if (Q_UNLIKELY(action != "bind" && action != "unbind")) {
/*
bind/unbind are driver changing for device type of event, on some systems it appears to be
broken and doing it all the time thus ignore the actions
*/
qWarning("UdevQt: unhandled device action \"%s\"", action.constData());
}
}