# HG changeset patch # User jbe # Date 1381702778 -7200 # Node ID 1821e7aee87fb8a11bcbb6d86ef202fb3200b8c1 # Parent 9905a70a475fda9bd4dcd1bc239db9e250605f2b Removed algorithm to calculate "order_in_open_states" diff -r 9905a70a475f -r 1821e7aee87f lf_update_issue_order.c --- a/lf_update_issue_order.c Mon Oct 14 00:09:01 2013 +0200 +++ b/lf_update_issue_order.c Mon Oct 14 00:19:38 2013 +0200 @@ -88,13 +88,6 @@ struct candidate **candidates; // all candidates equally preferred }; -// open issue to be assigned an "order_in_open_states": -struct open_issue { - char *issue_id; - int minimum_position; - int position; -}; - // determine candidate, which is assigned the next seat (starting with the worst rank): static struct candidate *loser(int round_number, struct ballot *ballots, int ballot_count) { int i, j; // index variables for loops @@ -180,33 +173,12 @@ abort(); } -// calculate "order_in_open_states": -static void calculate_order_in_open_states(struct open_issue *open_issues, int open_issue_count) { - int i, j, fallback_j = 0, fallback_minimum_position; - for (i=1; i<=open_issue_count; i++) { - fallback_minimum_position = -1; - for (j=0; j