summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2017-08-28 21:57:06 +0200
committerandroid-build-merger <android-build-merger@google.com>2017-08-28 21:57:06 +0200
commit813120749d0ee2463f2a70b2d1cc0ed3b11283d8 (patch)
treed9681631df73a04e432ed88fdf74fcae23ffb1a0
parentMerge "Add missing report of error code under recovery" am: 571855b0e6 (diff)
parentMerge "wear_ui: Remove dead 'self' and 'progress_t'." (diff)
downloadandroid_bootable_recovery-813120749d0ee2463f2a70b2d1cc0ed3b11283d8.tar
android_bootable_recovery-813120749d0ee2463f2a70b2d1cc0ed3b11283d8.tar.gz
android_bootable_recovery-813120749d0ee2463f2a70b2d1cc0ed3b11283d8.tar.bz2
android_bootable_recovery-813120749d0ee2463f2a70b2d1cc0ed3b11283d8.tar.lz
android_bootable_recovery-813120749d0ee2463f2a70b2d1cc0ed3b11283d8.tar.xz
android_bootable_recovery-813120749d0ee2463f2a70b2d1cc0ed3b11283d8.tar.zst
android_bootable_recovery-813120749d0ee2463f2a70b2d1cc0ed3b11283d8.zip
-rw-r--r--wear_ui.cpp8
-rw-r--r--wear_ui.h2
2 files changed, 1 insertions, 9 deletions
diff --git a/wear_ui.cpp b/wear_ui.cpp
index 169ef20e1..75d01bdc3 100644
--- a/wear_ui.cpp
+++ b/wear_ui.cpp
@@ -18,6 +18,7 @@
#include <errno.h>
#include <fcntl.h>
+#include <pthread.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
@@ -38,11 +39,6 @@
#include "common.h"
#include "device.h"
-// There's only (at most) one of these objects, and global callbacks
-// (for pthread_create, and the input event system) need to find it,
-// so use a global variable.
-static WearRecoveryUI* self = NULL;
-
// Return the current time as a double (including fractions of a second).
static double now() {
struct timeval tv;
@@ -63,8 +59,6 @@ WearRecoveryUI::WearRecoveryUI()
touch_screen_allowed_ = true;
for (size_t i = 0; i < 5; i++) backgroundIcon[i] = NULL;
-
- self = this;
}
int WearRecoveryUI::GetProgressBaseline() const {
diff --git a/wear_ui.h b/wear_ui.h
index 3bd90b699..d04718ccf 100644
--- a/wear_ui.h
+++ b/wear_ui.h
@@ -68,8 +68,6 @@ class WearRecoveryUI : public ScreenRecoveryUI {
const char* const* menu_headers_;
int menu_start, menu_end;
- pthread_t progress_t;
-
void draw_background_locked() override;
void draw_screen_locked() override;