]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/lily-guile.cc
ly:truncate-list! ; robust version of srfi-1 (list-head)
[lilypond.git] / lily / lily-guile.cc
index 970a11bf62cfec32fbe1879b88b6d52ff5fac4e8..85628e64f8d69572d36660f4ddad700f2d99afc8 100644 (file)
@@ -406,25 +406,6 @@ ly_deep_copy (SCM src)
 }
 
 
-SCM
-ly_truncate_list (int k, SCM lst)
-{
-  if (k == 0)
-    lst = SCM_EOL;
-  else
-    {
-      SCM s = lst;
-      k--;
-      for (; scm_is_pair (s) && k--; s = scm_cdr (s))
-       ;
-
-      if (scm_is_pair (s))
-       scm_set_cdr_x (s, SCM_EOL);
-    }
-  return lst;
-}
-
-