Skip to content

Commit 147438e

Browse files
newrengitster
authored andcommitted
treewide: remove unnecessary includes from header files
There are three kinds of unnecessary includes: * includes which aren't directly needed, but which include some other forgotten include * includes which could be replaced by a simple forward declaration of some structs * includes which aren't needed at all Remove the third kind of include. Subsequent commits (and a subsequent series) will work on removing some of the other kinds of includes. Signed-off-by: Elijah Newren <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 564d025 commit 147438e

File tree

4 files changed

+0
-4
lines changed

4 files changed

+0
-4
lines changed

fetch-pack.h

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
#define FETCH_PACK_H
33

44
#include "string-list.h"
5-
#include "run-command.h"
65
#include "protocol.h"
76
#include "list-objects-filter-options.h"
87
#include "oidset.h"

midx.h

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#ifndef MIDX_H
22
#define MIDX_H
33

4-
#include "repository.h"
54
#include "string-list.h"
65

76
struct object_id;

ref-filter.h

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
#include "gettext.h"
55
#include "oid-array.h"
6-
#include "refs.h"
76
#include "commit.h"
87
#include "string-list.h"
98
#include "strvec.h"

submodule-config.h

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
#define SUBMODULE_CONFIG_CACHE_H
33

44
#include "config.h"
5-
#include "hashmap.h"
65
#include "submodule.h"
76
#include "strbuf.h"
87
#include "tree-walk.h"

0 commit comments

Comments
 (0)