Skip to content

Commit 1829cd7

Browse files
committed
Revert "trace2:data: add vfs stats"
This reverts commit 7336c10.
1 parent 4e11a5f commit 1829cd7

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

virtualfilesystem.c

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,6 @@ void apply_virtualfilesystem(struct index_state *istate)
250250
{
251251
char *buf, *entry;
252252
int i;
253-
int nr_tracked = 0;
254253

255254
if (!git_config_get_virtualfilesystem())
256255
return;
@@ -279,7 +278,6 @@ void apply_virtualfilesystem(struct index_state *istate)
279278
pos = -pos - 1;
280279
while (pos < istate->cache_nr && !fspathncmp(istate->cache[pos]->name, entry, len)) {
281280
istate->cache[pos]->ce_flags &= ~CE_SKIP_WORKTREE;
282-
nr_tracked++;
283281
pos++;
284282
}
285283
}
@@ -290,19 +288,14 @@ void apply_virtualfilesystem(struct index_state *istate)
290288
ce->ce_flags &= ~CE_SKIP_WORKTREE;
291289
} else {
292290
int pos = index_name_pos(istate, entry, len);
293-
if (pos >= 0) {
294-
nr_tracked++;
291+
if (pos >= 0)
295292
istate->cache[pos]->ce_flags &= ~CE_SKIP_WORKTREE;
296-
}
297293
}
298294
}
299295

300296
entry += len + 1;
301297
}
302298
}
303-
304-
if (nr_tracked > 0)
305-
trace2_data_intmax("vfs", the_repository, "apply/tracked", nr_tracked);
306299
}
307300

308301
/*

0 commit comments

Comments
 (0)