commit 48595de13ae9d5618864199e01c22c837101f905 from: Stefan Sperling date: Sat Jan 04 23:58:45 2020 UTC remove redundant code from add_node_to_iter_list() commit - 94489f7d96343ddd926acbfe5d6b98bc759d60ca commit + 48595de13ae9d5618864199e01c22c837101f905 blob - 67cc1c5d1595cad48cd0998e6137e955e9207261 blob + c908949d9d3336c966421d82c17507a4926a25ef --- lib/commit_graph.c +++ lib/commit_graph.c @@ -151,11 +151,6 @@ add_node_to_iter_list(struct got_commit_graph *graph, { struct got_commit_graph_node *n, *next; - if (TAILQ_EMPTY(&graph->iter_list)) { - TAILQ_INSERT_HEAD(&graph->iter_list, node, entry); - return; - } - n = TAILQ_FIRST(&graph->iter_list); /* Ensure that an iteration in progress will see this new commit. */ while (n) {