Skip to contentSkip to conversation

init-db: remove unused include

PATCH In review Alexander Kuleshov 2 participants 2 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 init-db: remove unused include

"cache.h" removed, because it's already included at "builtin.h"

---
 builtin/init-db.c | 1 -
 1 file changed, 1 deletion(-)
builtin/init-db.c +0 -1
index 280454a..8edef87 100644
@@ -3,7 +3,6 @@
  *
  * Copyright (C) Linus Torvalds, 2005
  */
-#include "cache.h"
 #include "builtin.h"
 #include "exec_cmd.h"
 #include "parse-options.h"
Signature · 1 line
2.3.0.rc0.256.g2ad8601.dirty
#1 lore raw
Quoted 4 lines · Alexander Kuleshov

"cache.h" removed, because it's already included at "builtin.h"

---

Let's put this on hold.

$ git grep --all-match -l -e cache\\.h -e builtin\\.h -- \*.c

shows us there are tons, not just this one.

Also I'd like to see this discussion simmer a bit more:

http://thread.gmane.org/gmane.comp.version-control.git/262454/focus=262499

Quoted 15 lines
 builtin/init-db.c | 1 -
 1 file changed, 1 deletion(-)
builtin/init-db.c +0 -1
index 280454a..8edef87 100644
@@ -3,7 +3,6 @@
  *
  * Copyright (C) Linus Torvalds, 2005
  */
-#include "cache.h"
 #include "builtin.h"
 #include "exec_cmd.h"
 #include "parse-options.h"