scroller: removes unused variables

Summary: this patch removes some variables that are unused.

Reviewers: Hermet, eagleeye, zmike

Reviewed By: Hermet

Subscribers: #reviewers, cedric, #committers, zmike

Tags: #efl_widgets

Differential Revision: https://phab.enlightenment.org/D6593
This commit is contained in:
Wonki Kim 2018-08-29 21:38:20 +09:00 committed by Hermet Park
parent e19292aa2b
commit 1566cc79ec
4 changed files with 6 additions and 20 deletions

View File

@ -1130,11 +1130,8 @@ _efl_ui_scroll_manager_mouse_down_event_cb(void *data,
if (ev->button == 1)
{
sd->down.hist.est_timestamp_diff =
sd->down.est_timestamp_diff =
ecore_loop_time_get() - ((double)ev->timestamp / 1000.0);
sd->down.hist.tadd = 0.0;
sd->down.hist.dxsum = 0.0;
sd->down.hist.dysum = 0.0;
sd->down.now = EINA_TRUE;
sd->down.dragged = EINA_FALSE;
sd->down.dir_x = EINA_FALSE;
@ -1753,7 +1750,7 @@ _efl_ui_scroll_manager_hold_enterer(void *data)
double t;
} pos[100];
tdiff = sd->down.hist.est_timestamp_diff;
tdiff = sd->down.est_timestamp_diff;
tnow = ecore_loop_time_get();
twin = _elm_config->scroll_smooth_time_window;
for (i = 0; i < 60; i++)

View File

@ -38,11 +38,7 @@ typedef struct _Efl_Ui_Scroll_Manager_Data
double timestamp;
} history[60];
struct
{
double tadd, dxsum, dysum;
double est_timestamp_diff;
} hist;
double est_timestamp_diff;
double onhold_vx, onhold_vy;
double onhold_vxe, onhold_vye;

View File

@ -3017,11 +3017,8 @@ _elm_scroll_mouse_down_event_cb(void *data,
}
if (ev->button == 1)
{
sid->down.hist.est_timestamp_diff =
sid->down.est_timestamp_diff =
ecore_loop_time_get() - ((double)ev->timestamp / 1000.0);
sid->down.hist.tadd = 0.0;
sid->down.hist.dxsum = 0.0;
sid->down.hist.dysum = 0.0;
sid->down.now = EINA_TRUE;
sid->down.dragged = EINA_FALSE;
sid->down.dir_x = EINA_FALSE;
@ -3256,7 +3253,7 @@ _elm_scroll_hold_enterer(void *data)
double t;
} pos[100];
tdiff = sid->down.hist.est_timestamp_diff;
tdiff = sid->down.est_timestamp_diff;
tnow = ecore_loop_time_get();
twin = _elm_config->scroll_smooth_time_window;
for (i = 0; i < 60; i++)

View File

@ -102,11 +102,7 @@ struct _Elm_Scrollable_Smart_Interface_Data
double timestamp;
} history[60];
struct
{
double tadd, dxsum, dysum;
double est_timestamp_diff;
} hist;
double est_timestamp_diff;
double dragged_began_timestamp;
double anim_start;