From ff4293af1886ec7ca5a88f4599ccf9da23e90a8b Mon Sep 17 00:00:00 2001 From: rlar Date: Sun, 3 Aug 2014 18:51:44 +0200 Subject: [PATCH] inpcom.c, inp_sort_params(), drop `found_in_list' --- src/frontend/inpcom.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index 684709d57..49892e02a 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -3665,8 +3665,6 @@ inp_sort_params(struct line *start_card, struct line *end_card, struct line *car int i, j, num_params, ind = 0, max_level = 0, num_terminals = 0; bool in_control = FALSE; - bool found_in_list = FALSE; - struct line *c; char *str_ptr, *beg, *end, *new_str; int skipped = 0; @@ -3726,14 +3724,12 @@ inp_sort_params(struct line *start_card, struct line *end_card, struct line *car param_str = deps[j].param_str; if (search_plain_identifier(param_str, param_name)) { - found_in_list = FALSE; for (ind = 0; deps[j].depends_on[ind]; ind++) { if (strcmp(param_name, deps[j].depends_on[ind]) == 0) { - found_in_list = TRUE; break; } } - if (!found_in_list) { + if (!deps[j].depends_on[ind]) { deps[j].depends_on[ind++] = param_name; deps[j].depends_on[ind] = NULL; }