X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fmisc.cc;h=6cafa2b50b3669fac258e5d2b1d3e51cdb737db1;hb=0c5e8b93e920ce7747ddde1f74222dd3be165fa1;hp=7bb417bd6251ef2b5e7d34012ccfc2b4dd3c0d5b;hpb=5af7cd44435fd26fade6e700a3912630e1553a87;p=lilypond.git diff --git a/lily/misc.cc b/lily/misc.cc index 7bb417bd62..6cafa2b50b 100644 --- a/lily/misc.cc +++ b/lily/misc.cc @@ -22,28 +22,6 @@ #include "offset.hh" #include "warn.hh" -using std::string; -using std::vector; - -/* - Return the 2-log, rounded down -*/ -int -intlog2 (int d) -{ - if (d <= 0) - error ("intlog2 with negative argument: " + ::to_string (d)); - int i = 0; - while ((d != 1)) - { - d /= 2; - i++; - } - - assert (! (d / 2)); - return i; -} - double log_2 (double x) {