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 <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
564d0252ca
commit
147438e8a0
@@ -2,7 +2,6 @@
|
||||
#define FETCH_PACK_H
|
||||
|
||||
#include "string-list.h"
|
||||
#include "run-command.h"
|
||||
#include "protocol.h"
|
||||
#include "list-objects-filter-options.h"
|
||||
#include "oidset.h"
|
||||
|
||||
1
midx.h
1
midx.h
@@ -1,7 +1,6 @@
|
||||
#ifndef MIDX_H
|
||||
#define MIDX_H
|
||||
|
||||
#include "repository.h"
|
||||
#include "string-list.h"
|
||||
|
||||
struct object_id;
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
|
||||
#include "gettext.h"
|
||||
#include "oid-array.h"
|
||||
#include "refs.h"
|
||||
#include "commit.h"
|
||||
#include "string-list.h"
|
||||
#include "strvec.h"
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
#define SUBMODULE_CONFIG_CACHE_H
|
||||
|
||||
#include "config.h"
|
||||
#include "hashmap.h"
|
||||
#include "submodule.h"
|
||||
#include "strbuf.h"
|
||||
#include "tree-walk.h"
|
||||
|
||||
Reference in New Issue
Block a user