main: Remove unused struct members

->accel_{x,y,z} was set but never used.
This commit is contained in:
Bastien Nocera
2016-09-14 14:15:49 +02:00
parent 8ac58ec86a
commit cabe6ee4a3

View File

@@ -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 */
@@ -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;