From 558058bfa3c985ecfec6615fe087a8076f1914fc Mon Sep 17 00:00:00 2001 From: David Kastrup Date: Sun, 5 Feb 2017 17:09:53 +0100 Subject: [PATCH] Issue 5056/3: Don't overcheck arguments to \remove Instead we delete engravers with delq! in order to be fast and reliable. --- lily/context-def.cc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lily/context-def.cc b/lily/context-def.cc index 5768ee5471..72ddf6d37b 100644 --- a/lily/context-def.cc +++ b/lily/context-def.cc @@ -291,11 +291,8 @@ Context_def::get_translator_names (SCM user_mod) const if (scm_is_eq (tag, ly_symbol2scm ("consists"))) l1 = scm_cons (arg, l1); - else if (scm_is_eq (tag, ly_symbol2scm ("remove")) - && (scm_is_pair (arg) - || ly_is_procedure (arg) - || get_translator_creator (arg))) - l1 = scm_delete_x (arg, l1); + else if (scm_is_eq (tag, ly_symbol2scm ("remove"))) + l1 = scm_delq_x (arg, l1); } return l1; -- 2.39.2