From 5dd3207e5fda2f8f502a8a2f32f5484ea3f758b5 Mon Sep 17 00:00:00 2001 From: Mark Pulford Date: Sat, 31 Dec 2011 17:02:12 +1030 Subject: Remove "update_locale" Lua function Only update the locale when the module is initialised. cjson.new() can be used if the locale changes part way through program execution. --- lua_cjson.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'lua_cjson.c') diff --git a/lua_cjson.c b/lua_cjson.c index 3a40e9a..e458fc3 100644 --- a/lua_cjson.c +++ b/lua_cjson.c @@ -344,13 +344,6 @@ static int json_cfg_refuse_invalid_numbers(lua_State *l) return 1; } -static int json_update_locale(lua_State *l) -{ - fpconv_update_locale(); - - return 0; -} - static int json_destroy_config(lua_State *l) { json_config_t *cfg; @@ -1284,7 +1277,6 @@ static int lua_cjson_new(lua_State *l) { "encode_number_precision", json_cfg_encode_number_precision }, { "encode_keep_buffer", json_cfg_encode_keep_buffer }, { "refuse_invalid_numbers", json_cfg_refuse_invalid_numbers }, - { "update_locale", json_update_locale }, { "new", lua_cjson_new }, { NULL, NULL } }; -- cgit v1.2.3-55-g6feb