]> git.donarmstrong.com Git - lilypond.git/commitdiff
*** empty log message ***
authorJan Nieuwenhuizen <janneke@gnu.org>
Thu, 26 Jan 2006 22:10:09 +0000 (22:10 +0000)
committerJan Nieuwenhuizen <janneke@gnu.org>
Thu, 26 Jan 2006 22:10:09 +0000 (22:10 +0000)
flower/string.cc

index e210ea21730cfe42e814b2b167fd0eac97b0448a..76429ff8124f1f410e3d63c2a364c05bb498b4c9 100644 (file)
@@ -50,18 +50,9 @@ String::operator = (String const &source)
 String
 String::substr (int pos, ssize n) const
 {
-#if 1
   if (n == (ssize)-1 || n == (ssize)INT_MAX || n == NPOS)
     n = length () - pos;
   return cut_string (pos, n);
-#else
-  if (n == (ssize)-1 || n == (ssize)INT_MAX || n == NPOS)
-    n = length () - pos;
-  if (pos == 0)
-    return left_string (n);
-  else
-    return right_string (length () - pos).left_string (n);
-#endif
 }
 
 String