mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 10:22:48 +00:00
solid: remove unused Solid::PowerManagement::requestSleep() arguments
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
ca3641818e
commit
1807acdaf1
2 changed files with 2 additions and 7 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue