From 12405f10d56dd4e0adb3c8e3d464abf1e8e74f00 Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Sun, 20 Oct 2013 11:53:58 +0200 Subject: [PATCH] android: Remove not needed property_get function form cutils stubs This is no longer used as daemon indicates its presence by connecting socket. --- android/cutils/properties.h | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/android/cutils/properties.h b/android/cutils/properties.h index 44a712c30..f318b011a 100644 --- a/android/cutils/properties.h +++ b/android/cutils/properties.h @@ -24,33 +24,6 @@ extern "C" { #endif -#define PROPERTY_KEY_MAX 32 -#define PROPERTY_VALUE_MAX 92 - -/* property_get: returns the length of the value which will never be -** greater than PROPERTY_VALUE_MAX - 1 and will always be zero terminated. -** (the length does not include the terminating zero). -** -** If the property read fails or returns an empty value, the default -** value is used (if nonnull). -*/ -static inline int property_get(const char *key, char *value, - const char *default_value) -{ - const char *env; - - env = getenv(key); - if (!env) - env = default_value; - - if (!value || !env) - return 0; - - strncpy(value, env, PROPERTY_VALUE_MAX); - - return strlen(value); -} - /* property_set: returns 0 on success, < 0 on failure */ static inline int property_set(const char *key, const char *value) -- 2.47.3