# HG changeset patch # User moel.mich # Date 1283974198 0 # Node ID 4801e9eaf979e0553b36bf057a449b403b1d01ea # Parent 9901dbb25f18662a40d3204bbc3551b7f3c84689 Fixed some Code Analysis warnings. diff -r 9901dbb25f18 -r 4801e9eaf979 Hardware/ATI/ADL.cs --- a/Hardware/ATI/ADL.cs Tue Sep 07 22:15:02 2010 +0000 +++ b/Hardware/ATI/ADL.cs Wed Sep 08 19:29:58 2010 +0000 @@ -36,7 +36,6 @@ */ using System; -using System.Collections.Generic; using System.Runtime.InteropServices; namespace OpenHardwareMonitor.Hardware.ATI { diff -r 9901dbb25f18 -r 4801e9eaf979 Hardware/ATI/ATIGPU.cs --- a/Hardware/ATI/ATIGPU.cs Tue Sep 07 22:15:02 2010 +0000 +++ b/Hardware/ATI/ATIGPU.cs Wed Sep 08 19:29:58 2010 +0000 @@ -36,7 +36,6 @@ */ using System; -using System.Collections.Generic; using System.Globalization; namespace OpenHardwareMonitor.Hardware.ATI { diff -r 9901dbb25f18 -r 4801e9eaf979 Hardware/CPU/AMD0FCPU.cs --- a/Hardware/CPU/AMD0FCPU.cs Tue Sep 07 22:15:02 2010 +0000 +++ b/Hardware/CPU/AMD0FCPU.cs Wed Sep 08 19:29:58 2010 +0000 @@ -36,9 +36,7 @@ */ using System; -using System.Collections.Generic; using System.Globalization; -using System.Text; namespace OpenHardwareMonitor.Hardware.CPU { internal sealed class AMD0FCPU : Hardware, IHardware { diff -r 9901dbb25f18 -r 4801e9eaf979 Hardware/CPU/CPUGroup.cs --- a/Hardware/CPU/CPUGroup.cs Tue Sep 07 22:15:02 2010 +0000 +++ b/Hardware/CPU/CPUGroup.cs Wed Sep 08 19:29:58 2010 +0000 @@ -38,7 +38,6 @@ using System; using System.Collections.Generic; using System.Globalization; -using System.Diagnostics; using System.Text; namespace OpenHardwareMonitor.Hardware.CPU { diff -r 9901dbb25f18 -r 4801e9eaf979 Hardware/CPU/CPUID.cs --- a/Hardware/CPU/CPUID.cs Tue Sep 07 22:15:02 2010 +0000 +++ b/Hardware/CPU/CPUID.cs Wed Sep 08 19:29:58 2010 +0000 @@ -36,7 +36,6 @@ */ using System; -using System.Collections.Generic; using System.Text; namespace OpenHardwareMonitor.Hardware.CPU { diff -r 9901dbb25f18 -r 4801e9eaf979 Hardware/CPU/CPULoad.cs --- a/Hardware/CPU/CPULoad.cs Tue Sep 07 22:15:02 2010 +0000 +++ b/Hardware/CPU/CPULoad.cs Wed Sep 08 19:29:58 2010 +0000 @@ -36,9 +36,7 @@ */ using System; -using System.Collections.Generic; using System.Runtime.InteropServices; -using System.Text; namespace OpenHardwareMonitor.Hardware.CPU { internal class CPULoad { diff -r 9901dbb25f18 -r 4801e9eaf979 Hardware/CPU/IntelCPU.cs --- a/Hardware/CPU/IntelCPU.cs Tue Sep 07 22:15:02 2010 +0000 +++ b/Hardware/CPU/IntelCPU.cs Wed Sep 08 19:29:58 2010 +0000 @@ -39,10 +39,8 @@ using System.Collections.Generic; using System.Diagnostics; using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; +using System.Text; using System.Threading; -using System.Text; namespace OpenHardwareMonitor.Hardware.CPU { internal sealed class IntelCPU : Hardware, IHardware { diff -r 9901dbb25f18 -r 4801e9eaf979 Hardware/Computer.cs --- a/Hardware/Computer.cs Tue Sep 07 22:15:02 2010 +0000 +++ b/Hardware/Computer.cs Wed Sep 08 19:29:58 2010 +0000 @@ -37,14 +37,10 @@ using System; using System.Collections.Generic; +using System.Globalization; using System.IO; -using System.Globalization; -using System.Text; -using System.Threading; -using System.Security; using System.Security.Permissions; - namespace OpenHardwareMonitor.Hardware { public class Computer : IComputer { diff -r 9901dbb25f18 -r 4801e9eaf979 Hardware/Hardware.cs --- a/Hardware/Hardware.cs Tue Sep 07 22:15:02 2010 +0000 +++ b/Hardware/Hardware.cs Wed Sep 08 19:29:58 2010 +0000 @@ -36,7 +36,6 @@ */ using System; -using System.Collections.Generic; using OpenHardwareMonitor.Collections; namespace OpenHardwareMonitor.Hardware { diff -r 9901dbb25f18 -r 4801e9eaf979 Hardware/Heatmaster/Heatmaster.cs --- a/Hardware/Heatmaster/Heatmaster.cs Tue Sep 07 22:15:02 2010 +0000 +++ b/Hardware/Heatmaster/Heatmaster.cs Wed Sep 08 19:29:58 2010 +0000 @@ -36,7 +36,7 @@ */ using System; -using System.Collections.Generic; +using System.Globalization; using System.IO; using System.IO.Ports; using System.Text; @@ -44,7 +44,7 @@ using System.Threading; namespace OpenHardwareMonitor.Hardware.Heatmaster { - internal class Heatmaster : Hardware { + internal class Heatmaster : Hardware, IDisposable { private string portName; private SerialPort serialPort; @@ -85,8 +85,9 @@ serialPort.WriteLine("[0:" + device + "]R" + field); for (int i = 0; i < 5; i++) { string s = ReadLine(200); - Match match = Regex.Match(s, @"-\[0:" + device.ToString() + @"\]R" + - Regex.Escape(field.ToString()) + ":(.*)"); + Match match = Regex.Match(s, @"-\[0:" + + device.ToString(CultureInfo.InvariantCulture) + @"\]R" + + Regex.Escape(field.ToString(CultureInfo.InvariantCulture)) + ":(.*)"); if (match.Success) return match.Groups[1].Value; } @@ -114,8 +115,10 @@ serialPort.WriteLine("[0:" + device + "]W" + field + ":" + value); for (int i = 0; i < 5; i++) { string s = ReadLine(200); - Match match = Regex.Match(s, @"-\[0:" + device.ToString() + @"\]W" + - Regex.Escape(field.ToString()) + ":" + value); + Match match = Regex.Match(s, @"-\[0:" + + device.ToString(CultureInfo.InvariantCulture) + @"\]W" + + Regex.Escape(field.ToString(CultureInfo.InvariantCulture)) + + ":" + value); if (match.Success) return true; } @@ -123,7 +126,8 @@ } private bool WriteInteger(int device, char field, int value) { - return WriteField(device, field, value.ToString()); + return WriteField(device, field, + value.ToString(CultureInfo.InvariantCulture)); } private bool WriteString(int device, char field, string value) { @@ -233,7 +237,7 @@ string[] strings = s.Split(':'); int[] ints = new int[strings.Length]; for (int i = 0; i < ints.Length; i++) - ints[i] = int.Parse(strings[i]); + ints[i] = int.Parse(strings[i], CultureInfo.InvariantCulture); switch (device) { case 32: if (ints.Length == 3 && ints[0] <= fans.Length) { @@ -282,11 +286,11 @@ r.Append("Port: "); r.AppendLine(portName); r.Append("Hardware Revision: "); - r.AppendLine(hardwareRevision.ToString()); + r.AppendLine(hardwareRevision.ToString(CultureInfo.InvariantCulture)); r.Append("Firmware Revision: "); - r.AppendLine(firmwareRevision.ToString()); + r.AppendLine(firmwareRevision.ToString(CultureInfo.InvariantCulture)); r.Append("Firmware CRC: "); - r.AppendLine(firmwareCRC.ToString()); + r.AppendLine(firmwareCRC.ToString(CultureInfo.InvariantCulture)); r.AppendLine(); return r.ToString(); @@ -294,6 +298,15 @@ public void Close() { serialPort.Close(); + serialPort.Dispose(); + serialPort = null; + } + + public void Dispose() { + if (serialPort != null) { + serialPort.Dispose(); + serialPort = null; + } } } } diff -r 9901dbb25f18 -r 4801e9eaf979 Hardware/Heatmaster/HeatmasterGroup.cs --- a/Hardware/Heatmaster/HeatmasterGroup.cs Tue Sep 07 22:15:02 2010 +0000 +++ b/Hardware/Heatmaster/HeatmasterGroup.cs Wed Sep 08 19:29:58 2010 +0000 @@ -37,6 +37,7 @@ using System; using System.Collections.Generic; +using System.Globalization; using System.IO.Ports; using System.Security; using System.Text; @@ -99,77 +100,77 @@ string[] portNames = GetRegistryPortNames(); for (int i = portNames.Length - 1; i >= 0; i--) { - try { + bool isValid = false; + try { + using (SerialPort serialPort = + new SerialPort(portNames[i], 38400, Parity.None, 8, StopBits.One)) { + serialPort.NewLine = ((char)0x0D).ToString(); + report.Append("Port Name: "); report.AppendLine(portNames[i]); - SerialPort serialPort = - new SerialPort(portNames[i], 38400, Parity.None, 8, StopBits.One); - serialPort.NewLine = ((char)0x0D).ToString(); + try { + serialPort.Open(); + } catch (UnauthorizedAccessException) { + report.AppendLine("Exception: Access Denied"); + } - bool isValid = false; - report.Append("Port Name: "); report.AppendLine(portNames[i]); + if (serialPort.IsOpen) { + serialPort.DiscardInBuffer(); + serialPort.DiscardOutBuffer(); + serialPort.Write(new byte[] { 0xAA }, 0, 1); - try { - serialPort.Open(); - } catch (UnauthorizedAccessException) { - report.AppendLine("Exception: Access Denied"); - } - - if (serialPort.IsOpen) { - serialPort.DiscardInBuffer(); - serialPort.DiscardOutBuffer(); - serialPort.Write(new byte[] { 0xAA }, 0, 1); - - int j = 0; - while (serialPort.BytesToRead == 0 && j < 10) { - Thread.Sleep(20); - j++; - } - if (serialPort.BytesToRead > 0) { - bool flag = false; - while (serialPort.BytesToRead > 0 && !flag) { - flag |= (serialPort.ReadByte() == 0xAA); + int j = 0; + while (serialPort.BytesToRead == 0 && j < 10) { + Thread.Sleep(20); + j++; } - if (flag) { - serialPort.WriteLine("[0:0]RH"); - try { - int k = 0; - int revision = 0; - while (k < 5) { - string line = ReadLine(serialPort, 100); - if (line.StartsWith("-[0:0]RH:")) { - int.TryParse(line.Substring(9), out revision); - break; + if (serialPort.BytesToRead > 0) { + bool flag = false; + while (serialPort.BytesToRead > 0 && !flag) { + flag |= (serialPort.ReadByte() == 0xAA); + } + if (flag) { + serialPort.WriteLine("[0:0]RH"); + try { + int k = 0; + int revision = 0; + while (k < 5) { + string line = ReadLine(serialPort, 100); + if (line.StartsWith("-[0:0]RH:", + StringComparison.Ordinal)) { + revision = int.Parse(line.Substring(9), + CultureInfo.InvariantCulture); + break; + } + k++; } - k++; + isValid = (revision == 770); + if (!isValid) { + report.Append("Status: Wrong Hardware Revision " + + revision.ToString(CultureInfo.InvariantCulture)); + } + } catch (TimeoutException) { + report.AppendLine("Status: Timeout Reading Revision"); } - isValid = (revision == 770); - if (!isValid) { - report.Append("Status: Wrong Hardware Revision " + - revision.ToString()); - } - } catch (TimeoutException) { - report.AppendLine("Status: Timeout Reading Revision"); + } else { + report.AppendLine("Status: Wrong Startflag"); } } else { - report.AppendLine("Status: Wrong Startflag"); + report.AppendLine("Status: No Response"); } + serialPort.DiscardInBuffer(); } else { - report.AppendLine("Status: No Response"); - } - serialPort.DiscardInBuffer(); - serialPort.Close(); - serialPort.Dispose(); - } else { - report.AppendLine("Status: Port not Open"); - } - if (isValid) { - report.AppendLine("Status: OK"); - hardware.Add(new Heatmaster(portNames[i], settings)); - return; + report.AppendLine("Status: Port not Open"); + } } } catch (Exception e) { report.AppendLine(e.ToString()); - } + } + + if (isValid) { + report.AppendLine("Status: OK"); + hardware.Add(new Heatmaster(portNames[i], settings)); + return; + } report.AppendLine(); } } diff -r 9901dbb25f18 -r 4801e9eaf979 Hardware/HexStringArray.cs --- a/Hardware/HexStringArray.cs Tue Sep 07 22:15:02 2010 +0000 +++ b/Hardware/HexStringArray.cs Wed Sep 08 19:29:58 2010 +0000 @@ -37,7 +37,6 @@ using System; using System.Collections.Generic; -using System.Text; namespace OpenHardwareMonitor.Hardware { internal class HexStringArray { diff -r 9901dbb25f18 -r 4801e9eaf979 Hardware/IComputer.cs --- a/Hardware/IComputer.cs Tue Sep 07 22:15:02 2010 +0000 +++ b/Hardware/IComputer.cs Wed Sep 08 19:29:58 2010 +0000 @@ -35,9 +35,6 @@ */ -using System; -using System.Collections.Generic; - namespace OpenHardwareMonitor.Hardware { public delegate void HardwareEventHandler(IHardware hardware); diff -r 9901dbb25f18 -r 4801e9eaf979 Hardware/IElement.cs --- a/Hardware/IElement.cs Tue Sep 07 22:15:02 2010 +0000 +++ b/Hardware/IElement.cs Wed Sep 08 19:29:58 2010 +0000 @@ -35,10 +35,6 @@ */ -using System; -using System.Collections.Generic; -using System.Text; - namespace OpenHardwareMonitor.Hardware { public interface IElement { diff -r 9901dbb25f18 -r 4801e9eaf979 Hardware/IGroup.cs --- a/Hardware/IGroup.cs Tue Sep 07 22:15:02 2010 +0000 +++ b/Hardware/IGroup.cs Wed Sep 08 19:29:58 2010 +0000 @@ -35,9 +35,6 @@ */ -using System; -using System.Collections.Generic; - namespace OpenHardwareMonitor.Hardware { internal interface IGroup { diff -r 9901dbb25f18 -r 4801e9eaf979 Hardware/IHardware.cs --- a/Hardware/IHardware.cs Tue Sep 07 22:15:02 2010 +0000 +++ b/Hardware/IHardware.cs Wed Sep 08 19:29:58 2010 +0000 @@ -35,9 +35,6 @@ */ -using System; -using System.Collections.Generic; - namespace OpenHardwareMonitor.Hardware { public delegate void SensorEventHandler(ISensor sensor); diff -r 9901dbb25f18 -r 4801e9eaf979 Hardware/IParameter.cs --- a/Hardware/IParameter.cs Tue Sep 07 22:15:02 2010 +0000 +++ b/Hardware/IParameter.cs Wed Sep 08 19:29:58 2010 +0000 @@ -35,9 +35,6 @@ */ -using System; -using System.Collections.Generic; - namespace OpenHardwareMonitor.Hardware { public interface IParameter : IElement { diff -r 9901dbb25f18 -r 4801e9eaf979 Hardware/ISettings.cs --- a/Hardware/ISettings.cs Tue Sep 07 22:15:02 2010 +0000 +++ b/Hardware/ISettings.cs Wed Sep 08 19:29:58 2010 +0000 @@ -35,9 +35,6 @@ */ -using System; -using System.Collections.Generic; - namespace OpenHardwareMonitor.Hardware { public interface ISettings { diff -r 9901dbb25f18 -r 4801e9eaf979 Hardware/IVisitor.cs --- a/Hardware/IVisitor.cs Tue Sep 07 22:15:02 2010 +0000 +++ b/Hardware/IVisitor.cs Wed Sep 08 19:29:58 2010 +0000 @@ -35,10 +35,6 @@ */ -using System; -using System.Collections.Generic; -using System.Text; - namespace OpenHardwareMonitor.Hardware { public interface IVisitor { diff -r 9901dbb25f18 -r 4801e9eaf979 Hardware/Identifier.cs --- a/Hardware/Identifier.cs Tue Sep 07 22:15:02 2010 +0000 +++ b/Hardware/Identifier.cs Wed Sep 08 19:29:58 2010 +0000 @@ -36,7 +36,6 @@ */ using System; -using System.Collections.Generic; using System.Text; namespace OpenHardwareMonitor.Hardware { @@ -45,7 +44,7 @@ private static char SEPARATOR = '/'; - private static void CheckIdentifiers(string[] identifiers) { + private static void CheckIdentifiers(string[] identifiers) { foreach (string s in identifiers) if (s.Contains(" ") || s.Contains(SEPARATOR.ToString())) throw new ArgumentException("Invalid identifier"); @@ -97,7 +96,34 @@ if (other == null) return 1; else - return this.identifier.CompareTo(other.identifier); + return string.Compare(this.identifier, other.identifier, + StringComparison.Ordinal); } + + public static bool operator ==(Identifier id1, Identifier id2) { + if (id1 == null) + return id2 == null; + else + return id1.Equals(id2); + } + + public static bool operator !=(Identifier id1, Identifier id2) { + return !(id1 == id2); + } + + public static bool operator <(Identifier id1, Identifier id2) { + if (id1 == null) + return id2 != null; + else + return (id1.CompareTo(id2) < 0); + } + + public static bool operator >(Identifier id1, Identifier id2) { + if (id1 == null) + return false; + else + return (id1.CompareTo(id2) > 0); + } + } } diff -r 9901dbb25f18 -r 4801e9eaf979 Hardware/LPC/Chip.cs --- a/Hardware/LPC/Chip.cs Tue Sep 07 22:15:02 2010 +0000 +++ b/Hardware/LPC/Chip.cs Wed Sep 08 19:29:58 2010 +0000 @@ -1,7 +1,39 @@ - -using System; -using System.Collections.Generic; -using System.Text; +/* + + Version: MPL 1.1/GPL 2.0/LGPL 2.1 + + The contents of this file are subject to the Mozilla Public License Version + 1.1 (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.mozilla.org/MPL/ + + Software distributed under the License is distributed on an "AS IS" basis, + WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + for the specific language governing rights and limitations under the License. + + The Original Code is the Open Hardware Monitor code. + + The Initial Developer of the Original Code is + Michael Möller . + Portions created by the Initial Developer are Copyright (C) 2009-2010 + the Initial Developer. All Rights Reserved. + + Contributor(s): + + Alternatively, the contents of this file may be used under the terms of + either the GNU General Public License Version 2 or later (the "GPL"), or + the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + in which case the provisions of the GPL or the LGPL are applicable instead + of those above. If you wish to allow use of your version of this file only + under the terms of either the GPL or the LGPL, and not to allow others to + use your version of this file under the terms of the MPL, indicate your + decision by deleting the provisions above and replace them with the notice + and other provisions required by the GPL or the LGPL. If you do not delete + the provisions above, a recipient may use your version of this file under + the terms of any one of the MPL, the GPL or the LGPL. + +*/ namespace OpenHardwareMonitor.Hardware.LPC { @@ -59,7 +91,6 @@ default: return "Unknown"; } } - } } diff -r 9901dbb25f18 -r 4801e9eaf979 Hardware/LPC/ISuperIO.cs --- a/Hardware/LPC/ISuperIO.cs Tue Sep 07 22:15:02 2010 +0000 +++ b/Hardware/LPC/ISuperIO.cs Wed Sep 08 19:29:58 2010 +0000 @@ -35,9 +35,6 @@ */ -using System; -using System.Collections.Generic; - namespace OpenHardwareMonitor.Hardware.LPC { internal interface ISuperIO { diff -r 9901dbb25f18 -r 4801e9eaf979 Hardware/LPC/IT87XX.cs --- a/Hardware/LPC/IT87XX.cs Tue Sep 07 22:15:02 2010 +0000 +++ b/Hardware/LPC/IT87XX.cs Wed Sep 08 19:29:58 2010 +0000 @@ -35,8 +35,6 @@ */ -using System; -using System.Collections.Generic; using System.Globalization; using System.Text; diff -r 9901dbb25f18 -r 4801e9eaf979 Hardware/LPC/LMSensors.cs --- a/Hardware/LPC/LMSensors.cs Tue Sep 07 22:15:02 2010 +0000 +++ b/Hardware/LPC/LMSensors.cs Wed Sep 08 19:29:58 2010 +0000 @@ -35,7 +35,6 @@ */ -using System; using System.Collections.Generic; using System.Globalization; using System.IO; diff -r 9901dbb25f18 -r 4801e9eaf979 Hardware/LPC/W836XX.cs --- a/Hardware/LPC/W836XX.cs Tue Sep 07 22:15:02 2010 +0000 +++ b/Hardware/LPC/W836XX.cs Wed Sep 08 19:29:58 2010 +0000 @@ -36,7 +36,6 @@ */ using System; -using System.Collections.Generic; using System.Globalization; using System.Text; diff -r 9901dbb25f18 -r 4801e9eaf979 Hardware/Mainboard/Mainboard.cs --- a/Hardware/Mainboard/Mainboard.cs Tue Sep 07 22:15:02 2010 +0000 +++ b/Hardware/Mainboard/Mainboard.cs Wed Sep 08 19:29:58 2010 +0000 @@ -36,7 +36,6 @@ */ using System; -using System.Collections.Generic; using System.Text; using OpenHardwareMonitor.Hardware.LPC; diff -r 9901dbb25f18 -r 4801e9eaf979 Hardware/Mainboard/MainboardGroup.cs --- a/Hardware/Mainboard/MainboardGroup.cs Tue Sep 07 22:15:02 2010 +0000 +++ b/Hardware/Mainboard/MainboardGroup.cs Wed Sep 08 19:29:58 2010 +0000 @@ -35,9 +35,6 @@ */ -using System; -using System.Collections.Generic; - namespace OpenHardwareMonitor.Hardware.Mainboard { internal class MainboardGroup : IGroup { diff -r 9901dbb25f18 -r 4801e9eaf979 Hardware/Mainboard/SuperIOHardware.cs --- a/Hardware/Mainboard/SuperIOHardware.cs Tue Sep 07 22:15:02 2010 +0000 +++ b/Hardware/Mainboard/SuperIOHardware.cs Wed Sep 08 19:29:58 2010 +0000 @@ -35,7 +35,6 @@ */ -using System; using System.Collections.Generic; using System.Globalization; using OpenHardwareMonitor.Hardware.LPC; diff -r 9901dbb25f18 -r 4801e9eaf979 Hardware/Nvidia/NVAPI.cs --- a/Hardware/Nvidia/NVAPI.cs Tue Sep 07 22:15:02 2010 +0000 +++ b/Hardware/Nvidia/NVAPI.cs Wed Sep 08 19:29:58 2010 +0000 @@ -36,7 +36,6 @@ */ using System; -using System.Collections.Generic; using System.Runtime.InteropServices; using System.Text; diff -r 9901dbb25f18 -r 4801e9eaf979 Hardware/Nvidia/NvidiaGPU.cs --- a/Hardware/Nvidia/NvidiaGPU.cs Tue Sep 07 22:15:02 2010 +0000 +++ b/Hardware/Nvidia/NvidiaGPU.cs Wed Sep 08 19:29:58 2010 +0000 @@ -36,7 +36,6 @@ */ using System; -using System.Collections.Generic; using System.Globalization; using System.Text; diff -r 9901dbb25f18 -r 4801e9eaf979 Hardware/Nvidia/NvidiaGroup.cs --- a/Hardware/Nvidia/NvidiaGroup.cs Tue Sep 07 22:15:02 2010 +0000 +++ b/Hardware/Nvidia/NvidiaGroup.cs Wed Sep 08 19:29:58 2010 +0000 @@ -35,7 +35,6 @@ */ -using System; using System.Collections.Generic; using System.Globalization; using System.Text; diff -r 9901dbb25f18 -r 4801e9eaf979 Hardware/Parameter.cs --- a/Hardware/Parameter.cs Tue Sep 07 22:15:02 2010 +0000 +++ b/Hardware/Parameter.cs Wed Sep 08 19:29:58 2010 +0000 @@ -37,7 +37,6 @@ using System; using System.Globalization; -using System.Collections.Generic; namespace OpenHardwareMonitor.Hardware { diff -r 9901dbb25f18 -r 4801e9eaf979 Hardware/SensorVisitor.cs --- a/Hardware/SensorVisitor.cs Tue Sep 07 22:15:02 2010 +0000 +++ b/Hardware/SensorVisitor.cs Wed Sep 08 19:29:58 2010 +0000 @@ -37,7 +37,6 @@ using System; using System.Collections.Generic; -using OpenHardwareMonitor.Hardware; namespace OpenHardwareMonitor.Hardware { diff -r 9901dbb25f18 -r 4801e9eaf979 Hardware/TBalancer/FTD2XX.cs --- a/Hardware/TBalancer/FTD2XX.cs Tue Sep 07 22:15:02 2010 +0000 +++ b/Hardware/TBalancer/FTD2XX.cs Wed Sep 08 19:29:58 2010 +0000 @@ -36,7 +36,6 @@ */ using System; -using System.Collections.Generic; using System.Runtime.InteropServices; namespace OpenHardwareMonitor.Hardware.TBalancer { diff -r 9901dbb25f18 -r 4801e9eaf979 Hardware/TBalancer/TBalancer.cs --- a/Hardware/TBalancer/TBalancer.cs Tue Sep 07 22:15:02 2010 +0000 +++ b/Hardware/TBalancer/TBalancer.cs Wed Sep 08 19:29:58 2010 +0000 @@ -37,7 +37,6 @@ using System; using System.Collections.Generic; -using System.Configuration; using System.Globalization; using System.Text; diff -r 9901dbb25f18 -r 4801e9eaf979 Hardware/TBalancer/TBalancerGroup.cs --- a/Hardware/TBalancer/TBalancerGroup.cs Tue Sep 07 22:15:02 2010 +0000 +++ b/Hardware/TBalancer/TBalancerGroup.cs Wed Sep 08 19:29:58 2010 +0000 @@ -38,8 +38,6 @@ using System; using System.Collections.Generic; using System.Globalization; -using System.IO; -using System.IO.Ports; using System.Text; using System.Threading; diff -r 9901dbb25f18 -r 4801e9eaf979 Hardware/WinRing0.cs --- a/Hardware/WinRing0.cs Tue Sep 07 22:15:02 2010 +0000 +++ b/Hardware/WinRing0.cs Wed Sep 08 19:29:58 2010 +0000 @@ -36,8 +36,6 @@ */ using System; -using System.Collections.Generic; -using System.IO; using System.Runtime.InteropServices; using System.Threading;