summaryrefslogtreecommitdiffstats
path: root/recovery.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2019-03-29 23:43:09 +0100
committerTao Bao <tbao@google.com>2019-03-29 23:50:02 +0100
commitbc982a4f8845e5fa0cd2630ddcc3d8f70066b083 (patch)
treed95e3fdd35b47bb80c6b06bd65344c1eb2582afb /recovery.cpp
parentMerge "Move install to separate module" (diff)
downloadandroid_bootable_recovery-bc982a4f8845e5fa0cd2630ddcc3d8f70066b083.tar
android_bootable_recovery-bc982a4f8845e5fa0cd2630ddcc3d8f70066b083.tar.gz
android_bootable_recovery-bc982a4f8845e5fa0cd2630ddcc3d8f70066b083.tar.bz2
android_bootable_recovery-bc982a4f8845e5fa0cd2630ddcc3d8f70066b083.tar.lz
android_bootable_recovery-bc982a4f8845e5fa0cd2630ddcc3d8f70066b083.tar.xz
android_bootable_recovery-bc982a4f8845e5fa0cd2630ddcc3d8f70066b083.tar.zst
android_bootable_recovery-bc982a4f8845e5fa0cd2630ddcc3d8f70066b083.zip
Diffstat (limited to 'recovery.cpp')
-rw-r--r--recovery.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/recovery.cpp b/recovery.cpp
index 421bc12f2..02cc53c2c 100644
--- a/recovery.cpp
+++ b/recovery.cpp
@@ -24,7 +24,6 @@
#include <limits.h>
#include <linux/fs.h>
#include <linux/input.h>
-#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -746,20 +745,6 @@ static void print_property(const char* key, const char* name, void* /* cookie */
printf("%s=%s\n", key, name);
}
-void ui_print(const char* format, ...) {
- std::string buffer;
- va_list ap;
- va_start(ap, format);
- android::base::StringAppendV(&buffer, format, ap);
- va_end(ap);
-
- if (ui != nullptr) {
- ui->Print("%s", buffer.c_str());
- } else {
- fputs(buffer.c_str(), stdout);
- }
-}
-
static bool is_battery_ok(int* required_battery_level) {
using android::hardware::health::V1_0::BatteryStatus;
using android::hardware::health::V2_0::get_health_service;