From: David Kastrup Date: Thu, 25 Jun 2015 11:35:45 +0000 (+0200) Subject: Issue 4461: Don't use drop-right from (srfi srfi-1) in C++ X-Git-Tag: release/2.19.22-1~10 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=2fde4244989f5e8454ca99d7d4f7363b6f078a26;p=lilypond.git Issue 4461: Don't use drop-right from (srfi srfi-1) in C++ It can perfectly amicably be replaced by more efficient code readily available in the core. --- diff --git a/lily/unpure-pure-container.cc b/lily/unpure-pure-container.cc index 45b7188192..2dff6eea99 100644 --- a/lily/unpure-pure-container.cc +++ b/lily/unpure-pure-container.cc @@ -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))); } };