diff options
author | Tor Lillqvist <tml@iki.fi> | 2013-03-22 22:31:33 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2013-03-22 22:51:55 +0200 |
commit | 56220fb1304e68edea72f31b5d5a6194b703b87d (patch) | |
tree | 21f874068925feff854116e9a6a5cbeaf4f01a96 /sal | |
parent | No nan() in Clang for Android, it seems (diff) | |
download | core-56220fb1304e68edea72f31b5d5a6194b703b87d.tar.gz core-56220fb1304e68edea72f31b5d5a6194b703b87d.zip |
WaE: unused functions
Change-Id: I3014f75e9f5969902c5bb6cecad9286841e158e6
Diffstat (limited to 'sal')
-rw-r--r-- | sal/osl/all/log.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
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) |