X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fmisc.cc;h=6cafa2b50b3669fac258e5d2b1d3e51cdb737db1;hb=90e4d7057f3857da049dfda3d130017d4719bd6b;hp=7bb417bd6251ef2b5e7d34012ccfc2b4dd3c0d5b;hpb=207f71b8b2ab9ca550e841615bedce393e652ca6;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) {