From bc982a4f8845e5fa0cd2630ddcc3d8f70066b083 Mon Sep 17 00:00:00 2001 From: Tao Bao Date: Fri, 29 Mar 2019 15:43:09 -0700 Subject: Remove ui_print(). This used to be a helper function that allows printing message to UI. We no longer have any active user in bootable/recovery. Device-specific code can achieve the same functionality by calling GetUI()->Print() instead. Test: mmma -j bootable/recovery Change-Id: If584fc8a51d1af466f1d94d8ea5faa262603a784 --- common.h | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'common.h') diff --git a/common.h b/common.h index 22b2f0a0d..9cb44bd37 100644 --- a/common.h +++ b/common.h @@ -14,11 +14,7 @@ * limitations under the License. */ -#ifndef RECOVERY_COMMON_H -#define RECOVERY_COMMON_H - -#include -#include +#pragma once #include @@ -39,9 +35,6 @@ extern std::string stage; // The reason argument provided in "--reason=". extern const char* reason; -void ui_print(const char* format, ...) __printflike(1, 2); - bool is_ro_debuggable(); bool SetUsbConfig(const std::string& state); -#endif // RECOVERY_COMMON_H -- cgit v1.2.3 From e0cfab3de9d0e1b09799c7e488f171b31ddfe7bf Mon Sep 17 00:00:00 2001 From: Tao Bao Date: Fri, 29 Mar 2019 15:53:23 -0700 Subject: recovery: Remove SetUsbConfig() out of common.h. libinstall now has its own copy. Test: mmma -j bootable/recovery Change-Id: Ibbe7084e15baeb7e744f2175d5944477092acc9e --- common.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'common.h') diff --git a/common.h b/common.h index 9cb44bd37..a524a4184 100644 --- a/common.h +++ b/common.h @@ -36,5 +36,3 @@ extern std::string stage; extern const char* reason; bool is_ro_debuggable(); - -bool SetUsbConfig(const std::string& state); -- cgit v1.2.3