diff mbox series

[v2,2/4] bisect.c: remove unnecessary include

Message ID 20220405114505.24389-3-garrit@slashdev.space (mailing list archive)
State New, archived
Headers show
Series bisect.c: remove unused includes | expand

Commit Message

Garrit Franke April 5, 2022, 11:45 a.m. UTC
Remove include "hash-lookup.h".

Signed-off-by: Garrit Franke <garrit@slashdev.space>
---
 bisect.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Ævar Arnfjörð Bjarmason April 6, 2022, 7:50 a.m. UTC | #1
On Tue, Apr 05 2022, Garrit Franke wrote:

> Remove include "hash-lookup.h".

Like your 3/4 it would be nice to have a "orphaned since xyz", or was it
never used etc?

In these cases unlike most such C changes the compiler isn't of much use
for validation (we might be including this implicitly), so an
explanation saying why is helpful.
Junio C Hamano April 6, 2022, 4:41 p.m. UTC | #2
Ævar Arnfjörð Bjarmason <avarab@gmail.com> writes:

> On Tue, Apr 05 2022, Garrit Franke wrote:
>
>> Remove include "hash-lookup.h".
>
> Like your 3/4 it would be nice to have a "orphaned since xyz", or was it
> never used etc?
>
> In these cases unlike most such C changes the compiler isn't of much use
> for validation (we might be including this implicitly), so an
> explanation saying why is helpful.

Thanks for pointing it out.  I found the lack of explanation in some
but not all of the changes disturbing.
diff mbox series

Patch

diff --git a/bisect.c b/bisect.c
index 9e6a2b7f20..1aced76257 100644
--- a/bisect.c
+++ b/bisect.c
@@ -6,7 +6,6 @@ 
 #include "refs.h"
 #include "list-objects.h"
 #include "quote.h"
-#include "hash-lookup.h"
 #include "run-command.h"
 #include "log-tree.h"
 #include "bisect.h"