Skip to content

Commit 9fc9218

Browse files
Xgames123Cloudef
authored andcommitted
removed unused varible scroll_count in lib/menu.c
1 parent c132667 commit 9fc9218

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/menu.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1399,7 +1399,6 @@ bm_menu_run_with_touch(struct bm_menu *menu, struct bm_touch touch)
13991399
}
14001400

14011401
if (count_down == 2) {
1402-
int16_t scroll_count = 0;
14031402
int16_t scroll_directions[2];
14041403
int16_t distance_trigger = displayed * bm_menu_get_line_height(menu) / 4;
14051404
for (size_t i = 0; i < 2; ++i) {
@@ -1410,7 +1409,6 @@ bm_menu_run_with_touch(struct bm_menu *menu, struct bm_touch touch)
14101409
int32_t movement_y = point.pos_y - point.start_y;
14111410
if (abs(movement_y) > distance_trigger) {
14121411
scroll_directions[i] = movement_y / abs(movement_y);
1413-
scroll_count++;
14141412
}
14151413
}
14161414

0 commit comments

Comments
 (0)