Skip to contentSkip to conversation

repo: remove unused header

GSoC K Jayatheerth 2 participants 3 messages Feb 22

lore
Share & tools
lore
#0 lore raw

The "hex.h" header is included in "builtin/repo.c", but none of the functions or macros it provides are used in this file.

---

As instructed in the Getting Started section of SoC 2026 Ideas page in repo project This comes as a micro patch.

 builtin/repo.c | 1 -
 1 file changed, 1 deletion(-)
builtin/repo.c +0 -1
index 0ea045abc1..63d21df4c2 100644
@@ -2,7 +2,6 @@
 
 #include "builtin.h"
 #include "environment.h"
-#include "hex.h"
 #include "odb.h"
 #include "parse-options.h"
 #include "path-walk.h"
Signature · 1 line
2.52.0
#1 lore raw
Quoted 17 lines · K Jayatheerth

The "hex.h" header is included in "builtin/repo.c", but none of the functions or macros it provides are used in this file.

---

As instructed in the Getting Started section of SoC 2026 Ideas page in repo project This comes as a micro patch.

 builtin/repo.c | 1 -
 1 file changed, 1 deletion(-)
builtin/repo.c +0 -0
index 0ea045abc1..63d21df4c2 100644

builtin/repo.c line 5

Quoted 4 lines
builtin/repo.c +0 -1
@@ -2,7 +2,6 @@
 
 #include "builtin.h"
 #include "environment.h"
-#include "hex.h"

This include is indeed unused. I am currently working on a series [1] that will use this header again. I can of course just re-add it in that series as well though.

Thanks,
-Justin

[1]: <[email protected]>

#2 lore raw
Quoted 20 lines · Justin Tobler
Quoted 18 lines · K Jayatheerth

The "hex.h" header is included in "builtin/repo.c", but none of the functions or macros it provides are used in this file.

---

As instructed in the Getting Started section of SoC 2026 Ideas page in repo project This comes as a micro patch.

 builtin/repo.c | 1 -
 1 file changed, 1 deletion(-)
builtin/repo.c +0 -0
index 0ea045abc1..63d21df4c2 100644
@@ -2,7 +2,6 @@
 
Quoted 8 lines

builtin/repo.c line 5

Quoted 3 lines
builtin/repo.c +0 -1
 #include "builtin.h"
 #include "environment.h"
-#include "hex.h"

This include is indeed unused. I am currently working on a series [1] that will use this header again. I can of course just re-add it in that series as well though.

Understood Justin
Thanks for the info

Regards
- Jayatheerth