Skip to content

Commit cccbaf5

Browse files
authored
Converts Compact classes to fundamental ones (#493)
1 parent e42a915 commit cccbaf5

File tree

8 files changed

+7
-15
lines changed

8 files changed

+7
-15
lines changed

src/Resources/CPUCache.vala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55

66
// This struct holds paths to cpu cache data
77
// Learn more: https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-devices-system-cpu
8-
[Compact]
9-
public class Monitor.CPUCache : Object {
8+
public class Monitor.CPUCache {
109
//
1110
// allocation_policy:
1211
// - WriteAllocate:

src/Resources/Hwmon/HwmonFan.vala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
// This struct holds paths to temperature data
77
// Learn more: https://www.kernel.org/doc/html/v5.11/gpu/amdgpu.html#hwmon-interfaces
88

9-
[Compact]
10-
public class Monitor.HwmonFan : Object {
9+
public class Monitor.HwmonFan {
1110
// fan speed in RPM
1211
public string input;
1312

src/Resources/Hwmon/HwmonFrequency.vala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
// This struct holds paths to temperature data
77
// Learn more: https://www.kernel.org/doc/html/v5.11/gpu/amdgpu.html#hwmon-interfaces
88

9-
[Compact]
10-
public class Monitor.HwmonFrequency : Object {
9+
public class Monitor.HwmonFrequency {
1110
// freq channel label
1211
public string label;
1312

src/Resources/Hwmon/HwmonPWM.vala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
// This struct holds paths to temperature data
77
// Learn more: https://www.kernel.org/doc/html/v5.11/gpu/amdgpu.html#hwmon-interfaces
88

9-
[Compact]
10-
public class Monitor.HwmonPWM : Object {
9+
public class Monitor.HwmonPWM {
1110
// pulse width modulation fan level (0-255)
1211
public string pwm;
1312

src/Resources/Hwmon/HwmonPower.vala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
// This struct holds paths to temperature data
77
// Learn more: https://www.kernel.org/doc/html/v5.11/gpu/amdgpu.html#hwmon-interfaces
88

9-
[Compact]
10-
public class Monitor.HwmonPower : Object {
9+
public class Monitor.HwmonPower {
1110
// average power used by the GPU in microWatts
1211
public string average;
1312

src/Resources/Hwmon/HwmonTemperature.vala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
// returns contents of the file as a string
88
// Learn more: https://www.kernel.org/doc/html/v5.11/gpu/amdgpu.html#hwmon-interfaces
99

10-
[Compact]
11-
public class Monitor.HwmonTemperature : Object {
10+
public class Monitor.HwmonTemperature {
1211
// temperature channel label
1312
// temp2_label and temp3_label are supported on SOC15 dGPUs only
1413
public string _label;

src/Resources/Hwmon/HwmonVoltage.vala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
// This struct holds paths to temperature data
77
// Learn more: https://www.kernel.org/doc/html/v5.11/gpu/amdgpu.html#hwmon-interfaces
88

9-
[Compact]
10-
public class Monitor.HwmonVoltage : Object {
9+
public class Monitor.HwmonVoltage {
1110
// voltage channel label
1211
public string label;
1312

src/Resources/Storage/Volume.vala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
* SPDX-FileCopyrightText: 2025 elementary, Inc. (https://elementary.io)
44
*/
55

6-
[Compact]
76
public class Monitor.Volume : Object {
87
public string device;
98
public string label;

0 commit comments

Comments
 (0)