Skip to content

Commit 842385b

Browse files
peffgitster
authored andcommitted
dir.c: drop unused "untracked" from treat_path_fast()
We don't use the untracked_cache_dir parameter that is passed in, but instead look at the untracked_cache_dir inside the cached_dir struct we are passed. It's been this way since the introduction of treat_path_fast() in 91a2288 (untracked cache: record/validate dir mtime and reuse cached output, 2015-03-08). Signed-off-by: Jeff King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 9dad073 commit 842385b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

dir.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2105,7 +2105,6 @@ static int resolve_dtype(int dtype, struct index_state *istate,
21052105
}
21062106

21072107
static enum path_treatment treat_path_fast(struct dir_struct *dir,
2108-
struct untracked_cache_dir *untracked,
21092108
struct cached_dir *cdir,
21102109
struct index_state *istate,
21112110
struct strbuf *path,
@@ -2153,7 +2152,7 @@ static enum path_treatment treat_path(struct dir_struct *dir,
21532152
int has_path_in_index, dtype, excluded;
21542153

21552154
if (!cdir->d_name)
2156-
return treat_path_fast(dir, untracked, cdir, istate, path,
2155+
return treat_path_fast(dir, cdir, istate, path,
21572156
baselen, pathspec);
21582157
if (is_dot_or_dotdot(cdir->d_name) || !fspathcmp(cdir->d_name, ".git"))
21592158
return path_none;

0 commit comments

Comments
 (0)