diff mbox series

[v2,20/24] cache.h: remove unnecessary includes

Message ID 23e0a81e788e5d2080cffeb63796b1fca7185f6d.1680571352.git.gitgitgadget@gmail.com (mailing list archive)
State Accepted
Commit 31dfa17b3b83fcf0ff8ba286167b4225dc7d480d
Headers show
Series Header cleanups (splitting up cache.h) | expand

Commit Message

Elijah Newren April 4, 2023, 1:22 a.m. UTC
From: Elijah Newren <newren@gmail.com>

cache.h did not need any of these headers, and nothing that depended
upon cache.h needed them either.  Simply expunge these includes.

Signed-off-by: Elijah Newren <newren@gmail.com>
---
 cache.h | 4 ----
 1 file changed, 4 deletions(-)
diff mbox series

Patch

diff --git a/cache.h b/cache.h
index 21fd520b045..16b5fc9fa31 100644
--- a/cache.h
+++ b/cache.h
@@ -4,14 +4,10 @@ 
 #include "git-compat-util.h"
 #include "strbuf.h"
 #include "hashmap.h"
-#include "list.h"
 #include "gettext.h"
 #include "string-list.h"
-#include "hash.h"
-#include "path.h"
 #include "pathspec.h"
 #include "object.h"
-#include "repository.h"
 #include "statinfo.h"
 
 #if defined(DT_UNKNOWN) && !defined(NO_D_TYPE_IN_DIRENT)