summaryrefslogtreecommitdiffstats
path: root/wear_ui.cpp
diff options
context:
space:
mode:
authorTianjie Xu <xunchang@google.com>2017-08-29 19:34:28 +0200
committerandroid-build-merger <android-build-merger@google.com>2017-08-29 19:34:28 +0200
commit44d0b008c6b2c0a9f4ededcb58aa4d27f8adec91 (patch)
treee2b79f11b73bdb1b593076a25025b6c355a64559 /wear_ui.cpp
parentMerge "Add libasyncio." (diff)
parentMerge "Turn on -Wall for recovery modules" (diff)
downloadandroid_bootable_recovery-44d0b008c6b2c0a9f4ededcb58aa4d27f8adec91.tar
android_bootable_recovery-44d0b008c6b2c0a9f4ededcb58aa4d27f8adec91.tar.gz
android_bootable_recovery-44d0b008c6b2c0a9f4ededcb58aa4d27f8adec91.tar.bz2
android_bootable_recovery-44d0b008c6b2c0a9f4ededcb58aa4d27f8adec91.tar.lz
android_bootable_recovery-44d0b008c6b2c0a9f4ededcb58aa4d27f8adec91.tar.xz
android_bootable_recovery-44d0b008c6b2c0a9f4ededcb58aa4d27f8adec91.tar.zst
android_bootable_recovery-44d0b008c6b2c0a9f4ededcb58aa4d27f8adec91.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_;