Commit a523e107 authored by ivan tkachenko's avatar ivan tkachenko Committed by Nate Graham
Browse files

[dataengines/powermanagement] Clean up unnecessary code

parent 1c7b1a24
......@@ -479,36 +479,25 @@ QString PowermanagementEngine::batteryType(const Solid::Battery *battery) const
switch (battery->type()) {
case Solid::Battery::PrimaryBattery:
return QStringLiteral("Battery");
break;
case Solid::Battery::UpsBattery:
return QStringLiteral("Ups");
break;
case Solid::Battery::MonitorBattery:
return QStringLiteral("Monitor");
break;
case Solid::Battery::MouseBattery:
return QStringLiteral("Mouse");
break;
case Solid::Battery::KeyboardBattery:
return QStringLiteral("Keyboard");
break;
case Solid::Battery::PdaBattery:
return QStringLiteral("Pda");
break;
case Solid::Battery::PhoneBattery:
return QStringLiteral("Phone");
break;
case Solid::Battery::GamingInputBattery:
return QStringLiteral("GamingInput");
break;
case Solid::Battery::BluetoothBattery:
return QStringLiteral("Bluetooth");
break;
default:
return QStringLiteral("Unknown");
}
return QStringLiteral("Unknown");
}
bool PowermanagementEngine::updateSourceEvent(const QString &source)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment