X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;ds=sidebyside;f=flower%2Faxis.cc;h=d28657aabe0175e75649e48d813dbd0b68a4035b;hb=96505f9df73dbec6d19ceb78dbd8d3bb141137fe;hp=ff8566988dafe928bcb80209d3d800c4bee22629;hpb=63c9cee8ce190aaae4a5db3d2e200d35a570838d;p=lilypond.git diff --git a/flower/axis.cc b/flower/axis.cc index ff8566988d..d28657aabe 100644 --- a/flower/axis.cc +++ b/flower/axis.cc @@ -1,39 +1,18 @@ /* axis.cc -- implement Axis - source file of the GNU LilyPond music typesetter - (c) 1997 Han-Wen Nienhuys + + (c) 1997--2004 Han-Wen Nienhuys */ #include - #include "axes.hh" #include "string.hh" String -axis_name_str (Axis a) -{ - return String (char(a + 'x')); -} - -/* - TODO inline these. - */ -Axis -post_incr(Axis &a) -{ - assert(a < NO_AXES); - Axis b= a; - a = Axis(int(a) + 1); - return b; -} - -Axis -incr(Axis &a) +axis_name_string (Axis a) { - assert(a < NO_AXES); - a = Axis(int(a) + 1); - return a; + return to_string (char (a + 'x')); }