main: Remove unused struct members
->accel_{x,y,z} was set but never used.
This commit is contained in:
@@ -50,7 +50,6 @@ typedef struct {
|
|||||||
GHashTable *clients[NUM_SENSOR_TYPES]; /* key = D-Bus name, value = watch ID */
|
GHashTable *clients[NUM_SENSOR_TYPES]; /* key = D-Bus name, value = watch ID */
|
||||||
|
|
||||||
/* Accelerometer */
|
/* Accelerometer */
|
||||||
int accel_x, accel_y, accel_z;
|
|
||||||
OrientationUp previous_orientation;
|
OrientationUp previous_orientation;
|
||||||
|
|
||||||
/* Light */
|
/* 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);
|
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) {
|
if (data->previous_orientation != orientation) {
|
||||||
OrientationUp tmp;
|
OrientationUp tmp;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user