mirror of
https://github.com/blupi-games/planetblupi
synced 2024-12-30 10:15:36 +01:00
Remove unused argument (dead code)
This commit is contained in:
parent
bbb79e1037
commit
31bac11079
11
src/misc.cxx
11
src/misc.cxx
@ -99,16 +99,9 @@ GetLocale ()
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
IsRightReading (const char * text)
|
IsRightReading ()
|
||||||
{
|
{
|
||||||
auto isRight = false;
|
return GetLocale () == "he" || GetLocale () == "ar";
|
||||||
if (text)
|
|
||||||
isRight = strchr (text, 0xD7) != nullptr || // HE
|
|
||||||
strchr (text, 0xD8) != nullptr || // AR
|
|
||||||
strchr (text, 0xD9) != nullptr; // AR
|
|
||||||
else
|
|
||||||
isRight = GetLocale () == "he" || GetLocale () == "ar";
|
|
||||||
return isRight;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Retourne le nom de dossier en cours.
|
// Retourne le nom de dossier en cours.
|
||||||
|
@ -40,7 +40,7 @@ std::string GetBaseDir ();
|
|||||||
std::string GetShareDir ();
|
std::string GetShareDir ();
|
||||||
std::string GetBinDir ();
|
std::string GetBinDir ();
|
||||||
std::string GetLocale ();
|
std::string GetLocale ();
|
||||||
bool IsRightReading (const char * text = nullptr);
|
bool IsRightReading ();
|
||||||
extern void AddUserPath (std::string & pFilename);
|
extern void AddUserPath (std::string & pFilename);
|
||||||
|
|
||||||
enum Location { LOCATION_ABSOLUTE, LOCATION_BASE, LOCATION_USER };
|
enum Location { LOCATION_ABSOLUTE, LOCATION_BASE, LOCATION_USER };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user