X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=gettext.c;h=af2413b47e85223536b63f90180dd4c0ac2404d3;hb=dcb11fc6225edbe2bd7af63eb550b739e7f4a074;hp=1b564216d03f6a7bb75fb4c867ad1b0e5cfbecd0;hpb=42342b3ee6223201c92493043b78cc79b555abdc;p=thirdparty%2Fgit.git diff --git a/gettext.c b/gettext.c index 1b564216d0..af2413b47e 100644 --- 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;