{"thread":{"id":"46625","subject":"[PATCH] commit: remove unused inline function single_parent()","startedAt":"2017-08-19T08:12:59Z","lastAt":"2017-08-19T16:52:01Z","messageCount":2,"participants":["René Scharfe","Junio C Hamano"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"326763","messageId":"0993ee6c-712b-505e-9cfc-364d7ab71261@web.de","threadId":"46625","inReplyTo":null,"subject":"[PATCH] commit: remove unused inline function single_parent()","fromName":"René Scharfe","fromEmail":"l.s.r@web.de","sentAt":"2017-08-19T08:12:45Z","receivedAt":"2017-08-19T08:12:59Z","isPatch":true,"sender":{"key":"l.s.r@web.de","avatar":"https://avatars.githubusercontent.com/u/26122331?v=4"},"body":"53b2c823f6 (revision walker: mini clean-up) added the function in 2007,\nbut it was never used, so we should be able to get rid of it now.\n\nSigned-off-by: Rene Scharfe <l.s.r@web.de>\n---\n commit.h | 5 -----\n 1 file changed, 5 deletions(-)\n\ndiff --git a/commit.h b/commit.h\nindex 6d857f06c1..1283d2a51f 100644\n--- a/commit.h\n+++ b/commit.h\n@@ -313,11 +313,6 @@ extern int interactive_add(int argc, const char **argv, const char *prefix, int\n extern int run_add_interactive(const char *revision, const char *patch_mode,\n \t\t\t       const struct pathspec *pathspec);\n \n-static inline int single_parent(struct commit *commit)\n-{\n-\treturn commit->parents && !commit->parents->next;\n-}\n-\n struct commit_list *reduce_heads(struct commit_list *heads);\n \n struct commit_extra_header {\n-- \n2.14.1\n"},{"id":"326774","messageId":"xmqq7exza4d5.fsf@gitster.mtv.corp.google.com","threadId":"46625","inReplyTo":"0993ee6c-712b-505e-9cfc-364d7ab71261@web.de","subject":"Re: [PATCH] commit: remove unused inline function single_parent()","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2017-08-19T16:50:46Z","receivedAt":"2017-08-19T16:52:01Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Thanks.\n"}]}