diff options
Diffstat (limited to 'win/CS/HandBrakeWPF/Services/PowerService.cs')
-rw-r--r-- | win/CS/HandBrakeWPF/Services/PowerService.cs | 19 |
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); - } - } - } } } |