diff options
author | Tao Bao <tbao@google.com> | 2017-08-28 21:41:54 +0200 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2017-08-28 21:41:54 +0200 |
commit | 2e125bec2fbc190659f2ec14d8cbb3ca1c6352f1 (patch) | |
tree | a2baf7ee9b9b476c88854d680cddc3a0d22213e6 /wear_ui.cpp | |
parent | Merge "Add missing report of error code under recovery" (diff) | |
parent | wear_ui: Remove dead 'self' and 'progress_t'. (diff) | |
download | android_bootable_recovery-2e125bec2fbc190659f2ec14d8cbb3ca1c6352f1.tar android_bootable_recovery-2e125bec2fbc190659f2ec14d8cbb3ca1c6352f1.tar.gz android_bootable_recovery-2e125bec2fbc190659f2ec14d8cbb3ca1c6352f1.tar.bz2 android_bootable_recovery-2e125bec2fbc190659f2ec14d8cbb3ca1c6352f1.tar.lz android_bootable_recovery-2e125bec2fbc190659f2ec14d8cbb3ca1c6352f1.tar.xz android_bootable_recovery-2e125bec2fbc190659f2ec14d8cbb3ca1c6352f1.tar.zst android_bootable_recovery-2e125bec2fbc190659f2ec14d8cbb3ca1c6352f1.zip |
Diffstat (limited to '')
-rw-r--r-- | wear_ui.cpp | 8 |
1 files changed, 1 insertions, 7 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 { |