1.1 --- a/Hardware/ATI/ATIGPU.cs Sun Feb 07 19:48:32 2010 +0000
1.2 +++ b/Hardware/ATI/ATIGPU.cs Sun Feb 07 19:53:51 2010 +0000
1.3 @@ -41,7 +41,7 @@
1.4 using System.Reflection;
1.5
1.6 namespace OpenHardwareMonitor.Hardware.ATI {
1.7 - public class ATIGPU : IHardware {
1.8 + public class ATIGPU : Hardware, IHardware {
1.9
1.10 private string name;
1.11 private Image icon;
1.12 @@ -55,8 +55,6 @@
1.13 private Sensor coreVoltage;
1.14 private Sensor coreLoad;
1.15
1.16 - private List<ISensor> active = new List<ISensor>();
1.17 -
1.18 public ATIGPU(string name, int adapterIndex, int busNumber,
1.19 int deviceNumber)
1.20 {
1.21 @@ -95,10 +93,6 @@
1.22 get { return icon; }
1.23 }
1.24
1.25 - public ISensor[] Sensors {
1.26 - get { return active.ToArray(); }
1.27 - }
1.28 -
1.29 public string GetReport() {
1.30 return null;
1.31 }
1.32 @@ -144,24 +138,5 @@
1.33 DeactivateSensor(coreLoad);
1.34 }
1.35 }
1.36 -
1.37 - private void ActivateSensor(Sensor sensor) {
1.38 - if (!active.Contains(sensor)) {
1.39 - active.Add(sensor);
1.40 - if (SensorAdded != null)
1.41 - SensorAdded(sensor);
1.42 - }
1.43 - }
1.44 -
1.45 - private void DeactivateSensor(Sensor sensor) {
1.46 - if (active.Contains(sensor)) {
1.47 - active.Remove(sensor);
1.48 - if (SensorRemoved != null)
1.49 - SensorRemoved(sensor);
1.50 - }
1.51 - }
1.52 -
1.53 - public event SensorEventHandler SensorAdded;
1.54 - public event SensorEventHandler SensorRemoved;
1.55 }
1.56 }