diff options
author | md5 | 2011-05-15 13:46:22 +0300 |
---|---|---|
committer | md5 | 2011-05-15 13:46:22 +0300 |
commit | 5f583eda0dbd09034ae44dd726b710a18d1aaec5 (patch) | |
tree | 4ef3144f652deb55038f80818daeaaa95c04cd25 /engines/sword25/util/lua/loslib.cpp | |
parent | b34e776e517b893d3cc140e7282a99026c2500f8 (diff) | |
download | scummvm-rg350-5f583eda0dbd09034ae44dd726b710a18d1aaec5.tar.gz scummvm-rg350-5f583eda0dbd09034ae44dd726b710a18d1aaec5.tar.bz2 scummvm-rg350-5f583eda0dbd09034ae44dd726b710a18d1aaec5.zip |
SWORD25 (LUA): Removed unused non-portable locale code
Diffstat (limited to 'engines/sword25/util/lua/loslib.cpp')
-rw-r--r-- | engines/sword25/util/lua/loslib.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/engines/sword25/util/lua/loslib.cpp b/engines/sword25/util/lua/loslib.cpp index de96860812..578a7cb09a 100644 --- a/engines/sword25/util/lua/loslib.cpp +++ b/engines/sword25/util/lua/loslib.cpp @@ -5,7 +5,6 @@ */ -#include <locale.h> #include <stdlib.h> #include <string.h> #include <time.h> @@ -183,13 +182,8 @@ static int os_difftime (lua_State *L) { static int os_setlocale (lua_State *L) { - static const int cat[] = {LC_ALL, LC_COLLATE, LC_CTYPE, LC_MONETARY, - LC_NUMERIC, LC_TIME}; - static const char *const catnames[] = {"all", "collate", "ctype", "monetary", - "numeric", "time", NULL}; - const char *l = luaL_optstring(L, 1, NULL); - int op = luaL_checkoption(L, 2, "all", catnames); - lua_pushstring(L, setlocale(cat[op], l)); + // Non-portable call to set the numeric locale. Removed in ScummVM, as it's + // not used in sword25. return 1; } |