From: Yen Chi Hsuan Date: Wed, 15 Feb 2017 23:34:30 +0000 (+0800) Subject: bpo-29556: Remove unused #include (#98) X-Git-Tag: v3.7.0a1~1331 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=72e81d00eee685cfe33aaddf2aa9feef2d07591f;p=python bpo-29556: Remove unused #include (#98) bltinmodule.c: Added in b744ba1 and no longer necessary since d64e8a7 posixmodule.c: Added in d1cd4d4 and no longer necessary since efb00c0 pythonrun.c: Added in 73d538b and no longer necessary since d600951 sysmodule.c: Added in 5467d4c and no longer necessary since a2c17c5 --- diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index ffe4815d66..ae03d06fe1 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -87,10 +87,6 @@ corresponding Unix manual entries for more information on calls."); #include #endif -#ifdef HAVE_LANGINFO_H -#include -#endif - #ifdef HAVE_SYS_SENDFILE_H #include #endif diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index 763c2a2bb8..63f1998676 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -11,10 +11,6 @@ #include -#ifdef HAVE_LANGINFO_H -#include /* CODESET */ -#endif - /* The default encoding used by the platform file system APIs Can remain NULL for all platforms that don't have such a concept diff --git a/Python/pythonrun.c b/Python/pythonrun.c index 5bddbad1c8..b7016d1b00 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -25,10 +25,6 @@ #include "malloc.h" /* for alloca */ #endif -#ifdef HAVE_LANGINFO_H -#include -#endif - #ifdef MS_WINDOWS #undef BYTE #include "windows.h" diff --git a/Python/sysmodule.c b/Python/sysmodule.c index 81520ea84f..c317b4337a 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c @@ -33,10 +33,6 @@ extern void *PyWin_DLLhModule; extern const char *PyWin_DLLVersionString; #endif -#ifdef HAVE_LANGINFO_H -#include -#endif - _Py_IDENTIFIER(_); _Py_IDENTIFIER(__sizeof__); _Py_IDENTIFIER(buffer);