Skip to content

Commit 17e8039

Browse files
pks-tgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 88d21e3 commit 17e8039

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

reftable/system.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ license that can be found in the LICENSE file or at
1515
#include "lockfile.h"
1616
#include "tempfile.h"
1717
#include "hash.h" /* hash ID, sizes.*/
18-
#include "dir.h" /* remove_dir_recursively, for tests.*/
1918

2019
int hash_size(uint32_t id);
2120

t/unit-tests/t-reftable-stack.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ license that can be found in the LICENSE file or at
88

99
#include "test-lib.h"
1010
#include "lib-reftable.h"
11+
#include "dir.h"
1112
#include "reftable/merged.h"
1213
#include "reftable/reader.h"
1314
#include "reftable/reftable-error.h"

0 commit comments

Comments
 (0)