refresh_index: remove unnecessary calls to preload_index()
authorBen Peart <benpeart@microsoft.com>
Mon, 5 Nov 2018 19:27:51 +0000 (14:27 -0500)
committerJunio C Hamano <gitster@pobox.com>
Tue, 6 Nov 2018 03:49:59 +0000 (12:49 +0900)
With refresh_index() learning to utilize preload_index() to speed up its
operation there is no longer any benefit to having the caller preload the
index first. Remove those unneeded calls by calling read_index() instead of
the preload variant.

There is no measurable performance impact of this patch - the 2nd call to
preload_index() bails out quickly but there is no reason to call it twice.

Signed-off-by: Ben Peart <benpeart@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found