Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c3437622 authored by Tao Bao's avatar Tao Bao Committed by android-build-merger
Browse files

Merge "wear_ui: Remove dead/duplicate codes." am: f722fcf0

am: c9e41185

Change-Id: Ib7ed03df1c1f23d4419cb932495f26f15006e3be
parents 8b4c7e75 c9e41185
Loading
Loading
Loading
Loading
+0 −11
Original line number Diff line number Diff line
@@ -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);
+0 −2
Original line number Diff line number Diff line
@@ -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