X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fscale.cc;h=a5afd41daee5f86fd466e4ac0af98c52fa641e95;hb=47db9a3883d726ca53e2133a3b2298f78dd6a32e;hp=3dff7b4b3320c6a2a654663b5f26ed047ab38c1f;hpb=99b6f3aa3558b01c9d4158b19a1f1794c534f89c;p=lilypond.git diff --git a/lily/scale.cc b/lily/scale.cc index 3dff7b4b33..a5afd41dae 100644 --- a/lily/scale.cc +++ b/lily/scale.cc @@ -1,7 +1,7 @@ /* This file is part of LilyPond, the GNU music typesetter. - Copyright (C) 2006--2014 Han-Wen Nienhuys + Copyright (C) 2006--2015 Han-Wen Nienhuys 2007--2008 Rune Zedeler 2008 Joe Neeman @@ -21,7 +21,6 @@ #include "scale.hh" -#include "ly-smobs.icc" /* todo: put string <-> pitch here too. @@ -134,20 +133,7 @@ Scale::normalize_step (int step) const return ret; } -int -Scale::print_smob (SCM /* x */, - SCM port, - scm_print_state *) -{ - scm_puts ("#", port); - return 1; -} -SCM -Scale::mark_smob (SCM) -{ - return SCM_UNSPECIFIED; -} Scale::Scale (vector const &tones) { @@ -157,6 +143,7 @@ Scale::Scale (vector const &tones) } Scale::Scale (Scale const &src) + : Smob () { step_tones_ = src.step_tones_; smobify_self (); @@ -165,6 +152,3 @@ Scale::Scale (Scale const &src) Scale::~Scale () { } - -IMPLEMENT_SMOBS (Scale); -IMPLEMENT_DEFAULT_EQUAL_P (Scale);