diff options
author | Tianjie Xu <xunchang@google.com> | 2017-08-29 19:45:17 +0200 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-08-29 19:45:17 +0200 |
commit | eb958f0d9ed5003d754c9ff68a4a37130f7e3a37 (patch) | |
tree | f35c2c5edebd4d939758d0a5a8ae9659f253ccaa /wear_ui.cpp | |
parent | Merge "Add libasyncio." am: d179c923d8 am: d21fb1ece0 (diff) | |
parent | Merge "Turn on -Wall for recovery modules" am: 11f68b6b69 (diff) | |
download | android_bootable_recovery-eb958f0d9ed5003d754c9ff68a4a37130f7e3a37.tar android_bootable_recovery-eb958f0d9ed5003d754c9ff68a4a37130f7e3a37.tar.gz android_bootable_recovery-eb958f0d9ed5003d754c9ff68a4a37130f7e3a37.tar.bz2 android_bootable_recovery-eb958f0d9ed5003d754c9ff68a4a37130f7e3a37.tar.lz android_bootable_recovery-eb958f0d9ed5003d754c9ff68a4a37130f7e3a37.tar.xz android_bootable_recovery-eb958f0d9ed5003d754c9ff68a4a37130f7e3a37.tar.zst android_bootable_recovery-eb958f0d9ed5003d754c9ff68a4a37130f7e3a37.zip |
Diffstat (limited to 'wear_ui.cpp')
-rw-r--r-- | wear_ui.cpp | 8 |
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_; |