Skip to content
This repository was archived by the owner on Jul 23, 2020. It is now read-only.

Commit cabe6ee

Browse files
committed
main: Remove unused struct members
->accel_{x,y,z} was set but never used.
1 parent 8ac58ec commit cabe6ee

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/iio-sensor-proxy.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ typedef struct {
5050
GHashTable *clients[NUM_SENSOR_TYPES]; /* key = D-Bus name, value = watch ID */
5151

5252
/* Accelerometer */
53-
int accel_x, accel_y, accel_z;
5453
OrientationUp previous_orientation;
5554

5655
/* Light */
@@ -594,10 +593,6 @@ accel_changed_func (SensorDriver *driver,
594593

595594
orientation = orientation_calc (data->previous_orientation, readings->accel_x, readings->accel_y, readings->accel_z, readings->scale);
596595

597-
data->accel_x = readings->accel_x;
598-
data->accel_y = readings->accel_y;
599-
data->accel_z = readings->accel_z;
600-
601596
if (data->previous_orientation != orientation) {
602597
OrientationUp tmp;
603598

0 commit comments

Comments
 (0)