solid: remove unused Solid::PowerManagement::requestSleep() arguments

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2023-07-09 18:08:55 +03:00
parent ca3641818e
commit 1807acdaf1
2 changed files with 2 additions and 7 deletions

View file

@ -90,11 +90,8 @@ QSet<Solid::PowerManagement::SleepState> Solid::PowerManagement::supportedSleepS
return globalPowerManager()->supportedSleepStates;
}
void Solid::PowerManagement::requestSleep(SleepState state, QObject *receiver, const char *member)
void Solid::PowerManagement::requestSleep(SleepState state)
{
Q_UNUSED(receiver)
Q_UNUSED(member)
if (!globalPowerManager()->supportedSleepStates.contains(state)) {
return;
}

View file

@ -79,10 +79,8 @@ namespace Solid
* Requests that the system go to sleep
*
* @param state the sleep state use
* @param receiver the object to call a slot on once the operation completes
* @param member the slot to call
*/
SOLID_EXPORT void requestSleep(SleepState state, QObject *receiver, const char *member);
SOLID_EXPORT void requestSleep(SleepState state);
/**
* Tell the power management subsystem to suppress automatic system sleep until further