Kaydet (Commit) 56220fb1 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

WaE: unused functions

Change-Id: I3014f75e9f5969902c5bb6cecad9286841e158e6
üst 6a17d2f2
...@@ -79,6 +79,8 @@ bool equalStrings( ...@@ -79,6 +79,8 @@ bool equalStrings(
return length1 == length2 && std::memcmp(string1, string2, length1) == 0; return length1 == length2 && std::memcmp(string1, string2, length1) == 0;
} }
#ifndef ANDROID
char const * toString(sal_detail_LogLevel level) { char const * toString(sal_detail_LogLevel level) {
switch (level) { switch (level) {
default: default:
...@@ -93,6 +95,8 @@ char const * toString(sal_detail_LogLevel level) { ...@@ -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 // getenv is not thread safe, so minimize use of result; except on Android and
// iOS, see 60628799633ffde502cb105b98d3f254f93115aa "Notice if SAL_LOG is // iOS, see 60628799633ffde502cb105b98d3f254f93115aa "Notice if SAL_LOG is
// changed while the process is running": // changed while the process is running":
...@@ -123,6 +127,7 @@ char const * getEnvironmentVariable() { ...@@ -123,6 +127,7 @@ char const * getEnvironmentVariable() {
#endif #endif
#ifndef ANDROID
#if HAVE_SYSLOG_H #if HAVE_SYSLOG_H
int toSyslogPriority(sal_detail_LogLevel level) { int toSyslogPriority(sal_detail_LogLevel level) {
switch (level) { switch (level) {
...@@ -138,6 +143,7 @@ int toSyslogPriority(sal_detail_LogLevel level) { ...@@ -138,6 +143,7 @@ int toSyslogPriority(sal_detail_LogLevel level) {
} }
} }
#endif #endif
#endif
bool report(sal_detail_LogLevel level, char const * area) { bool report(sal_detail_LogLevel level, char const * area) {
if (level == SAL_DETAIL_LOG_LEVEL_DEBUG) if (level == SAL_DETAIL_LOG_LEVEL_DEBUG)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment