From 56220fb1304e68edea72f31b5d5a6194b703b87d Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Fri, 22 Mar 2013 22:31:33 +0200 Subject: WaE: unused functions Change-Id: I3014f75e9f5969902c5bb6cecad9286841e158e6 --- sal/osl/all/log.cxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sal/osl') diff --git a/sal/osl/all/log.cxx b/sal/osl/all/log.cxx index baedeb87f344..ad81c836bb8c 100644 --- a/sal/osl/all/log.cxx +++ b/sal/osl/all/log.cxx @@ -79,6 +79,8 @@ bool equalStrings( return length1 == length2 && std::memcmp(string1, string2, length1) == 0; } +#ifndef ANDROID + char const * toString(sal_detail_LogLevel level) { switch (level) { default: @@ -93,6 +95,8 @@ char const * toString(sal_detail_LogLevel level) { } } +#endif + // getenv is not thread safe, so minimize use of result; except on Android and // iOS, see 60628799633ffde502cb105b98d3f254f93115aa "Notice if SAL_LOG is // changed while the process is running": @@ -123,6 +127,7 @@ char const * getEnvironmentVariable() { #endif +#ifndef ANDROID #if HAVE_SYSLOG_H int toSyslogPriority(sal_detail_LogLevel level) { switch (level) { @@ -138,6 +143,7 @@ int toSyslogPriority(sal_detail_LogLevel level) { } } #endif +#endif bool report(sal_detail_LogLevel level, char const * area) { if (level == SAL_DETAIL_LOG_LEVEL_DEBUG) -- cgit