summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/Services/PowerService.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2020-11-14 15:44:33 +0000
committersr55 <[email protected]>2020-11-14 15:44:40 +0000
commitedd291d61a3aad8f41f86af909a4e9979ac5d37d (patch)
tree6dcefb610de2c2b7b3853eb486269eb53bf45cb5 /win/CS/HandBrakeWPF/Services/PowerService.cs
parent1a8610c0ca7ad2ceacbb02b71ca46e955ce3ae00 (diff)
WinGui: Various fixes and improvements to the installers post .NET 5
Diffstat (limited to 'win/CS/HandBrakeWPF/Services/PowerService.cs')
-rw-r--r--win/CS/HandBrakeWPF/Services/PowerService.cs19
1 files changed, 0 insertions, 19 deletions
diff --git a/win/CS/HandBrakeWPF/Services/PowerService.cs b/win/CS/HandBrakeWPF/Services/PowerService.cs
index adf6a2655..e72b8c6ba 100644
--- a/win/CS/HandBrakeWPF/Services/PowerService.cs
+++ b/win/CS/HandBrakeWPF/Services/PowerService.cs
@@ -9,9 +9,6 @@
namespace HandBrakeWPF.Services
{
- using System;
- using System.Management;
-
using HandBrakeWPF.Utilities;
public class PowerService
@@ -27,21 +24,5 @@ namespace HandBrakeWPF.Services
return true;
}
-
- private void GetPowerState()
- {
- System.Management.ObjectQuery query = new ObjectQuery("Select * FROM Win32_Battery");
- ManagementObjectSearcher searcher = new ManagementObjectSearcher(query);
-
- ManagementObjectCollection collection = searcher.Get();
-
- foreach (ManagementObject mo in collection)
- {
- foreach (PropertyData property in mo.Properties)
- {
- Console.WriteLine("Property {0}: Value is {1}", property.Name, property.Value);
- }
- }
- }
}
}