aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTao Bao2017-06-28 17:27:34 -0500
committerTao Bao2017-06-28 17:32:23 -0500
commit0bc54dd83fee524e4475770df16570923aea13cb (patch)
tree9ff8bcac4005d1f8f3193d81a6a69fe4286f16c2 /wear_ui.cpp
parentf9fe6a705da65dffd763786b700d6e78b9e085bc (diff)
downloadplatform-bootable-recovery-0bc54dd83fee524e4475770df16570923aea13cb.tar.gz
platform-bootable-recovery-0bc54dd83fee524e4475770df16570923aea13cb.tar.xz
platform-bootable-recovery-0bc54dd83fee524e4475770df16570923aea13cb.zip
wear_ui: Remove dead/duplicate codes.
WearRecoveryUI::draw_progress_locked() has declaration only, where the definition was deleted in commit 5e7cfb9af64d5f6bf616d9b6fa40bd0ae82e781a. WearRecoveryUI::ClearText() is a duplicates of ScreenRecoveryUI::ClearText(). Test: Build swordfish recovery image. 'Run graphics test' and 'View recovery logs'. Change-Id: Ib66955d1d496f04359b4d6487160218e8f954478
Diffstat (limited to 'wear_ui.cpp')
-rw-r--r--wear_ui.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/wear_ui.cpp b/wear_ui.cpp
index 640f04a7..a29746cd 100644
--- a/wear_ui.cpp
+++ b/wear_ui.cpp
@@ -363,17 +363,6 @@ void WearRecoveryUI::ShowFile(const char* filename) {
363 fclose(fp); 363 fclose(fp);
364} 364}
365 365
366void WearRecoveryUI::ClearText() {
367 pthread_mutex_lock(&updateMutex);
368 text_col_ = 0;
369 text_row_ = 0;
370 text_top_ = 1;
371 for (size_t i = 0; i < text_rows_; ++i) {
372 memset(text_[i], 0, text_cols_ + 1);
373 }
374 pthread_mutex_unlock(&updateMutex);
375}
376
377void WearRecoveryUI::PrintOnScreenOnly(const char *fmt, ...) { 366void WearRecoveryUI::PrintOnScreenOnly(const char *fmt, ...) {
378 va_list ap; 367 va_list ap;
379 va_start(ap, fmt); 368 va_start(ap, fmt);