]> git.ipfire.org Git - thirdparty/git.git/blobdiff - gettext.c
Merge branch 'ab/pager-exit-log'
[thirdparty/git.git] / gettext.c
index 1b564216d03f6a7bb75fb4c867ad1b0e5cfbecd0..af2413b47e85223536b63f90180dd4c0ac2404d3 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, ...)
 {
@@ -117,8 +109,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;