diff -r 420adf504011 -r c4d1fb76a9e1 Hardware/CPU/AMD0FCPU.cs --- a/Hardware/CPU/AMD0FCPU.cs Sun Feb 07 19:48:32 2010 +0000 +++ b/Hardware/CPU/AMD0FCPU.cs Sun Feb 07 19:53:51 2010 +0000 @@ -43,7 +43,7 @@ namespace OpenHardwareMonitor.Hardware.CPU { - public class AMD0FCPU : IHardware { + public class AMD0FCPU : Hardware, IHardware { private string name; private Image icon; @@ -56,8 +56,6 @@ private Sensor totalLoad; private Sensor[] coreLoads; - private List active = new List(); - private CPULoad cpuLoad; private const ushort PCI_AMD_VENDOR_ID = 0x1022; @@ -121,10 +119,6 @@ get { return icon; } } - public ISensor[] Sensors { - get { return active.ToArray(); } - } - public string GetReport() { return null; } @@ -154,26 +148,6 @@ coreLoads[i].Value = cpuLoad.GetCoreLoad(i); totalLoad.Value = cpuLoad.GetTotalLoad(); } - } - - private void ActivateSensor(Sensor sensor) { - if (!active.Contains(sensor)) { - active.Add(sensor); - if (SensorAdded != null) - SensorAdded(sensor); - } - } - - private void DeactivateSensor(Sensor sensor) { - if (active.Contains(sensor)) { - active.Remove(sensor); - if (SensorRemoved != null) - SensorRemoved(sensor); - } - } - - public event SensorEventHandler SensorAdded; - public event SensorEventHandler SensorRemoved; - + } } }