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

Commit

Permalink
main: Remove unused struct members
Browse files Browse the repository at this point in the history
->accel_{x,y,z} was set but never used.
  • Loading branch information
hadess committed Sep 14, 2016
1 parent 8ac58ec commit cabe6ee
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/iio-sensor-proxy.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ typedef struct {
GHashTable *clients[NUM_SENSOR_TYPES]; /* key = D-Bus name, value = watch ID */

/* Accelerometer */
int accel_x, accel_y, accel_z;
OrientationUp previous_orientation;

/* Light */
Expand Down Expand Up @@ -594,10 +593,6 @@ accel_changed_func (SensorDriver *driver,

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

data->accel_x = readings->accel_x;
data->accel_y = readings->accel_y;
data->accel_z = readings->accel_z;

if (data->previous_orientation != orientation) {
OrientationUp tmp;

Expand Down

0 comments on commit cabe6ee

Please sign in to comment.