diff options
author | Elijah Newren <newren@gmail.com> | 2023-12-23 18:14:50 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-12-26 21:04:31 +0100 |
commit | eea0e59ffbed6e33d171ace5be13cde9faa41639 (patch) | |
tree | e5ecfbb51dd0026796dabd22b483e14e0d77eebb /gettext.c | |
parent | treewide: remove unnecessary includes from header files (diff) | |
download | git-eea0e59ffbed6e33d171ace5be13cde9faa41639.tar.xz git-eea0e59ffbed6e33d171ace5be13cde9faa41639.zip |
treewide: remove unnecessary includes in source files
Each of these were checked with
gcc -E -I. ${SOURCE_FILE} | grep ${HEADER_FILE}
to ensure that removing the direct inclusion of the header actually
resulted in that header no longer being included at all (i.e. that
no other header pulled it in transitively).
...except for a few cases where we verified that although the header
was brought in transitively, nothing from it was directly used in
that source file. These cases were:
* builtin/credential-cache.c
* builtin/pull.c
* builtin/send-pack.c
Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'gettext.c')
-rw-r--r-- | gettext.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -7,9 +7,7 @@ #include "environment.h" #include "exec-cmd.h" #include "gettext.h" -#include "strbuf.h" #include "utf8.h" -#include "config.h" #ifndef NO_GETTEXT # include <libintl.h> |