wear_ui: Remove dead/duplicate codes.
WearRecoveryUI::draw_progress_locked() has declaration only, where
the definition was deleted in commit
5e7cfb9af6
.
WearRecoveryUI::ClearText() is a duplicates of
ScreenRecoveryUI::ClearText().
Test: Build swordfish recovery image. 'Run graphics test' and 'View
recovery logs'.
Change-Id: Ib66955d1d496f04359b4d6487160218e8f954478
This commit is contained in:
parent
f9fe6a705d
commit
0bc54dd83f
2 changed files with 0 additions and 13 deletions
11
wear_ui.cpp
11
wear_ui.cpp
|
@ -363,17 +363,6 @@ void WearRecoveryUI::ShowFile(const char* filename) {
|
|||
fclose(fp);
|
||||
}
|
||||
|
||||
void WearRecoveryUI::ClearText() {
|
||||
pthread_mutex_lock(&updateMutex);
|
||||
text_col_ = 0;
|
||||
text_row_ = 0;
|
||||
text_top_ = 1;
|
||||
for (size_t i = 0; i < text_rows_; ++i) {
|
||||
memset(text_[i], 0, text_cols_ + 1);
|
||||
}
|
||||
pthread_mutex_unlock(&updateMutex);
|
||||
}
|
||||
|
||||
void WearRecoveryUI::PrintOnScreenOnly(const char *fmt, ...) {
|
||||
va_list ap;
|
||||
va_start(ap, fmt);
|
||||
|
|
|
@ -75,10 +75,8 @@ class WearRecoveryUI : public ScreenRecoveryUI {
|
|||
|
||||
void draw_background_locked() override;
|
||||
void draw_screen_locked() override;
|
||||
void draw_progress_locked();
|
||||
|
||||
void PutChar(char);
|
||||
void ClearText();
|
||||
};
|
||||
|
||||
#endif // RECOVERY_WEAR_UI_H
|
||||
|
|
Loading…
Reference in a new issue