From 0b6b34295413410e4ca52df4671d2a217e56a57b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20=C3=85gren?= Date: Sun, 22 Apr 2018 20:12:50 +0200 Subject: walker: drop fields of `struct walker` which are always 1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit After the previous commit, both users of `struct walker` set `get_tree`, `get_history` and `get_all` to 1. Drop those fields and simplify the walker implementation accordingly. Let's hope that any out-of-tree users will not mind this change. They should notice that the compilation fails as they try to set these fields. (If they do not set them, note that `get_http_walker()` leaves them undefined, so the behavior will have been undefined all the time.) Signed-off-by: Martin Ă…gren Signed-off-by: Junio C Hamano --- walker.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'walker.h') diff --git a/walker.h b/walker.h index a869013e85..6d8ae00e5b 100644 --- a/walker.h +++ b/walker.h @@ -9,9 +9,6 @@ struct walker { void (*prefetch)(struct walker *, unsigned char *sha1); int (*fetch)(struct walker *, unsigned char *sha1); void (*cleanup)(struct walker *); - int get_tree; - int get_history; - int get_all; int get_verbosely; int get_recover; -- cgit v1.2.3