From 1b197ba1aaae9b56d0d1e4979ead09e21619817c Mon Sep 17 00:00:00 2001 From: David Kastrup Date: Tue, 16 Aug 2011 19:46:33 +0200 Subject: [PATCH] context-def.cc: scm_memq before scm_delete_x is redundant, and its result is not a valid C condition anyway and could have caused duplicate entries. --- lily/context-def.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lily/context-def.cc b/lily/context-def.cc index 5dd1684a83..e5f33c75c7 100644 --- a/lily/context-def.cc +++ b/lily/context-def.cc @@ -174,8 +174,7 @@ Context_def::get_accepted (SCM user_mod) const SCM def = get_default_child (user_mod); if (scm_is_symbol (def)) { - if (scm_memq (def, acc)) - acc = scm_delete_x (def, acc); + acc = scm_delete_x (def, acc); acc = scm_cons (def, acc); } -- 2.39.2