]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/unpure-pure-container.cc
Issue 4461: Don't use drop-right from (srfi srfi-1) in C++
[lilypond.git] / 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)));
   }
 };