]> git.ipfire.org Git - thirdparty/git.git/blobdiff - gettext.c
tests: remove support for GIT_TEST_GETTEXT_POISON
[thirdparty/git.git] / gettext.c
index 35d2c1218db2e27a6ac07fbf3c1244987e3e3021..308c4b3129495b7401a374eb86abdbb5fb3a1c2d 100644 (file)
--- a/gettext.c
+++ b/gettext.c
@@ -65,14 +65,6 @@ const char *get_preferred_languages(void)
        return NULL;
 }
 
-int use_gettext_poison(void)
-{
-       static int poison_requested = -1;
-       if (poison_requested == -1)
-               poison_requested = git_env_bool("GIT_TEST_GETTEXT_POISON", 0);
-       return poison_requested;
-}
-
 #ifndef NO_GETTEXT
 static int test_vsnprintf(const char *fmt, ...)
 {
@@ -181,8 +173,6 @@ void git_setup_gettext(void)
        if (!podir)
                podir = p = system_path(GIT_LOCALE_PATH);
 
-       use_gettext_poison(); /* getenv() reentrancy paranoia */
-
        if (!is_directory(podir)) {
                free(p);
                return;