reftable/system: move "dir.h" to its only user

We still include "dir.h" in "reftable/system.h" even though it is not used by anything but by a single unit test. Move it over into that unit test so that we don't accidentally use any functionality provided by it in the reftable codebase. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Patrick Steinhardt committed Nov 18, 2024 at 16:33 UTC 17e80398782b4e8746a389604aaaf9744fd6900a
2 files changed +1 -1
reftable/system.h
-1
@@ -15,7 +15,6 @@ https://developers.google.com/open-source/licenses/bsd
15 #include "lockfile.h"
16 #include "tempfile.h"
17 #include "hash.h" /* hash ID, sizes.*/
18 -#include "dir.h" /* remove_dir_recursively, for tests.*/
18
19 int hash_size(uint32_t id);
20
t/unit-tests/t-reftable-stack.c
+1
@@ -8,6 +8,7 @@ https://developers.google.com/open-source/licenses/bsd
8
9 #include "test-lib.h"
10 #include "lib-reftable.h"
11 +#include "dir.h"
12 #include "reftable/merged.h"
13 #include "reftable/reader.h"
14 #include "reftable/reftable-error.h"