From 2fa178a01e5f1059969d29421fa79626412f54ba Mon Sep 17 00:00:00 2001 From: Tom Cherry Date: Wed, 9 May 2018 15:25:39 -0700 Subject: [PATCH] Remove unused using statement / host stub GetIntProperty() isn't used after Ied46e9346b4ca7931aa4dcf1c9dbc11de0e12d93, so it can be removed. Test: build Change-Id: I5736f553db1a615d51b8fe3cbf9b4aee89451076 --- init/host_init_stubs.h | 5 ----- init/property_service.cpp | 1 - init/subcontext.cpp | 3 --- 3 files changed, 9 deletions(-) diff --git a/init/host_init_stubs.h b/init/host_init_stubs.h index ad48602e8..bb241af9b 100644 --- a/init/host_init_stubs.h +++ b/init/host_init_stubs.h @@ -35,11 +35,6 @@ namespace base { std::string GetProperty(const std::string& key, const std::string& default_value); bool GetBoolProperty(const std::string& key, bool default_value); -template -T GetIntProperty(const std::string&, T default_value, T = std::numeric_limits::min(), - T = std::numeric_limits::max()) { - return default_value; -} } // namespace base } // namespace android diff --git a/init/property_service.cpp b/init/property_service.cpp index c3100a5f1..47e45efeb 100644 --- a/init/property_service.cpp +++ b/init/property_service.cpp @@ -65,7 +65,6 @@ using namespace std::literals; -using android::base::GetIntProperty; using android::base::ReadFileToString; using android::base::Split; using android::base::StartsWith; diff --git a/init/subcontext.cpp b/init/subcontext.cpp index fdb46415d..267d530f0 100644 --- a/init/subcontext.cpp +++ b/init/subcontext.cpp @@ -30,8 +30,6 @@ #include "util.h" #if defined(__ANDROID__) -#include - #include "property_service.h" #include "selinux.h" #else @@ -39,7 +37,6 @@ #endif using android::base::GetExecutablePath; -using android::base::GetIntProperty; using android::base::Join; using android::base::Socketpair; using android::base::Split;