diff options
author | Tao Bao | 2017-09-05 17:27:41 -0500 |
---|---|---|
committer | Tao Bao | 2017-09-08 14:22:43 -0500 |
commit | f05e2bcff297a5735e75e50ba42fc9c7098a579e (patch) | |
tree | 47f3aa2b641e12f035183eea60a15d3d60a9a16c /wear_ui.h | |
parent | 8c753f62538b2008e726c66def9bf47aeed7afe1 (diff) | |
download | platform-bootable-recovery-f05e2bcff297a5735e75e50ba42fc9c7098a579e.tar.gz platform-bootable-recovery-f05e2bcff297a5735e75e50ba42fc9c7098a579e.tar.xz platform-bootable-recovery-f05e2bcff297a5735e75e50ba42fc9c7098a579e.zip |
wear_ui: Remove Print()/ShowFile()/PutChar().
They're mostly identical to the ones in ScreenRecoveryUI, except for the
(legacy) use of 'text_top_'. Because wear_ui.cpp misses the change in
[1] that uses an alternate screen for viewing recovery logs.
Also clean up the included headers.
[1] commit c049163234003ef463bca018920622bc8269c69b ('Add an alternate
screen for viewing recovery logs.').
Test: Build a wearable target recovery; `View recovery logs`.
Change-Id: Ic9208c42a11c037469f5b073ef7d9b721c14d1f3
Diffstat (limited to 'wear_ui.h')
-rw-r--r-- | wear_ui.h | 9 |
1 files changed, 0 insertions, 9 deletions
@@ -19,19 +19,12 @@ | |||
19 | 19 | ||
20 | #include "screen_ui.h" | 20 | #include "screen_ui.h" |
21 | 21 | ||
22 | #include <string> | ||
23 | |||
24 | class WearRecoveryUI : public ScreenRecoveryUI { | 22 | class WearRecoveryUI : public ScreenRecoveryUI { |
25 | public: | 23 | public: |
26 | WearRecoveryUI(); | 24 | WearRecoveryUI(); |
27 | 25 | ||
28 | void SetStage(int current, int max) override; | 26 | void SetStage(int current, int max) override; |
29 | 27 | ||
30 | // printing messages | ||
31 | void Print(const char* fmt, ...) override; | ||
32 | void ShowFile(const char* filename) override; | ||
33 | void ShowFile(FILE* fp) override; | ||
34 | |||
35 | // menu display | 28 | // menu display |
36 | void StartMenu(const char* const* headers, const char* const* items, | 29 | void StartMenu(const char* const* headers, const char* const* items, |
37 | int initial_selection) override; | 30 | int initial_selection) override; |
@@ -53,8 +46,6 @@ class WearRecoveryUI : public ScreenRecoveryUI { | |||
53 | void draw_background_locked() override; | 46 | void draw_background_locked() override; |
54 | void draw_screen_locked() override; | 47 | void draw_screen_locked() override; |
55 | 48 | ||
56 | void PutChar(char); | ||
57 | |||
58 | int menu_start, menu_end; | 49 | int menu_start, menu_end; |
59 | }; | 50 | }; |
60 | 51 | ||