Removed warnings related to unused variables 74/32674/1
authorAnkur <ankur29.garg@samsung.com>
Mon, 22 Dec 2014 12:05:34 +0000 (17:35 +0530)
committerAnkur <ankur29.garg@samsung.com>
Mon, 22 Dec 2014 12:05:41 +0000 (17:35 +0530)
-Removed two unused variables. Both variables were never being intialised or being assigned or being used anywhere in the code.
The variables were just declared. Safe to remove such variables.

Change-Id: I998a1c0c2978d48150c1b15e9b0cc083e430c73a

src/libsensord/client.cpp
src/orientation/orientation_sensor.cpp

index 2f1e649..79245d7 100755 (executable)
@@ -108,7 +108,7 @@ static void clean_up(void)
 static int get_power_save_state (void)
 {
        int state = 0;
-       int pm_state, ps_state;
+       int pm_state;
 
        vconf_get_int(VCONFKEY_PM_STATE, &pm_state);
 
index 325c004..dd0f818 100755 (executable)
@@ -295,7 +295,6 @@ void orientation_sensor::synthesize(const sensor_event_t &event, vector<sensor_e
 
        sensor_event_t orientation_event;
        euler_angles<float> euler_orientation;
-       float raw_data[3];
        float azimuth_offset;
 
        if (event.event_type == ACCELEROMETER_EVENT_RAW_DATA_REPORT_ON_TIME) {