summaryrefslogtreecommitdiff
path: root/android/cutils
diff options
context:
space:
mode:
authorSzymon Janc <szymon.janc@tieto.com>2013-10-20 11:53:58 +0200
committerJohan Hedberg <johan.hedberg@intel.com>2013-10-20 22:35:06 +0300
commit12405f10d56dd4e0adb3c8e3d464abf1e8e74f00 (patch)
treeede5b5b64641bf010b1c218e12946152d476c23f /android/cutils
parentd0cd4f3fd6a6c146e5e9779dad602a6f765b6cc8 (diff)
downloadbluez-12405f10d56dd4e0adb3c8e3d464abf1e8e74f00.tar.gz
android: Remove not needed property_get function form cutils stubs
This is no longer used as daemon indicates its presence by connecting socket.
Diffstat (limited to 'android/cutils')
-rw-r--r--android/cutils/properties.h27
1 files changed, 0 insertions, 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)