summaryrefslogtreecommitdiffstats
path: root/wear_ui.cpp
diff options
context:
space:
mode:
authorTianjie Xu <xunchang@google.com>2017-08-29 19:21:09 +0200
committerGerrit Code Review <noreply-gerritcodereview@google.com>2017-08-29 19:21:09 +0200
commit11f68b6b691425eb001a073ff56d8b448a564d8a (patch)
tree97d6d0bcebdc2947739b3a0e1144eab50899c4bd /wear_ui.cpp
parentMerge "Add libasyncio." (diff)
parentTurn on -Wall for recovery modules (diff)
downloadandroid_bootable_recovery-11f68b6b691425eb001a073ff56d8b448a564d8a.tar
android_bootable_recovery-11f68b6b691425eb001a073ff56d8b448a564d8a.tar.gz
android_bootable_recovery-11f68b6b691425eb001a073ff56d8b448a564d8a.tar.bz2
android_bootable_recovery-11f68b6b691425eb001a073ff56d8b448a564d8a.tar.lz
android_bootable_recovery-11f68b6b691425eb001a073ff56d8b448a564d8a.tar.xz
android_bootable_recovery-11f68b6b691425eb001a073ff56d8b448a564d8a.tar.zst
android_bootable_recovery-11f68b6b691425eb001a073ff56d8b448a564d8a.zip
Diffstat (limited to '')
-rw-r--r--wear_ui.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/wear_ui.cpp b/wear_ui.cpp
index e4806718d..85c8f835d 100644
--- a/wear_ui.cpp
+++ b/wear_ui.cpp
@@ -39,13 +39,6 @@
#include "common.h"
#include "device.h"
-// Return the current time as a double (including fractions of a second).
-static double now() {
- struct timeval tv;
- gettimeofday(&tv, NULL);
- return tv.tv_sec + tv.tv_usec / 1000000.0;
-}
-
WearRecoveryUI::WearRecoveryUI()
: kProgressBarBaseline(RECOVERY_UI_PROGRESS_BAR_BASELINE),
kMenuUnusableRows(RECOVERY_UI_MENU_UNUSABLE_ROWS) {
@@ -167,7 +160,6 @@ void WearRecoveryUI::draw_screen_locked() {
// display from the bottom up, until we hit the top of the
// screen, the bottom of the menu, or we've displayed the
// entire text buffer.
- int ty;
int row = (text_top_ + text_rows_ - 1) % text_rows_;
size_t count = 0;
for (int ty = gr_fb_height() - char_height_ - kMarginHeight; ty > y + 2 && count < text_rows_;