]> git.donarmstrong.com Git - lilypond.git/commitdiff
Issue 4461: Don't use drop-right from (srfi srfi-1) in C++
authorDavid Kastrup <dak@gnu.org>
Thu, 25 Jun 2015 11:35:45 +0000 (13:35 +0200)
committerDavid Kastrup <dak@gnu.org>
Fri, 26 Jun 2015 11:49:16 +0000 (13:49 +0200)
It can perfectly amicably be replaced by more efficient code readily
available in the core.

lily/unpure-pure-container.cc

index 45b71881923c9ac8b3d3e75c5fe92ec748383494..2dff6eea992a402c7beaeaf567f6611ef41164c9 100644 (file)
@@ -29,9 +29,8 @@ public:
   SCM call (SCM arg1, SCM arg2, SCM rest)
   {
     return scm_apply_0 (scm1 (),
-                        scm_call_2 (ly_lily_module_constant ("drop-right"),
-                                    scm_cons2 (arg1, arg2, rest),
-                                    scm_from_int (2)));
+                        scm_list_head (scm_cons2 (arg1, arg2, rest),
+                                       scm_length (rest)));
   }
 };