Remove redundant #if/#endif in Unix locale code

Put both Unix-only functions inside the same #ifdef __UNIX__.

No real changes.
This commit is contained in:
Vadim Zeitlin
2021-02-28 22:50:35 +01:00
parent 2e8e0197d7
commit 73b41dda91

View File

@@ -89,15 +89,12 @@ namespace
{ {
#if defined(__UNIX__) #if defined(__UNIX__)
// get just the language part ("en" in "en_GB") // get just the language part ("en" in "en_GB")
inline wxString ExtractLang(const wxString& langFull) inline wxString ExtractLang(const wxString& langFull)
{ {
return langFull.BeforeFirst('_'); return langFull.BeforeFirst('_');
} }
#endif
// helper functions of GetSystemLanguage()
#ifdef __UNIX__
// get everything else (including the leading '_') // get everything else (including the leading '_')
inline wxString ExtractNotLang(const wxString& langFull) inline wxString ExtractNotLang(const wxString& langFull)