From 0b6b34295413410e4ca52df4671d2a217e56a57b Mon Sep 17 00:00:00 2001 From: Martin Ågren 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 --- http-fetch.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'http-fetch.c') diff --git a/http-fetch.c b/http-fetch.c index a1564f5a41..7b855d3349 100644 --- a/http-fetch.c +++ b/http-fetch.c @@ -56,9 +56,6 @@ int cmd_main(int argc, const char **argv) http_init(NULL, url, 0); walker = get_http_walker(url); - walker->get_tree = 1; - walker->get_history = 1; - walker->get_all = 1; walker->get_verbosely = get_verbosely; walker->get_recover = get_recover; -- cgit v1.2.3