X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fmisc.cc;h=6cafa2b50b3669fac258e5d2b1d3e51cdb737db1;hb=5d84bfad4626892bcffd05adcced53c8a2329047;hp=b930fd521a50e4eb2c93d69736591cac7a7b402e;hpb=0b25807868f2e1f3372a8fb5e19d9036dec53ecc;p=lilypond.git diff --git a/lily/misc.cc b/lily/misc.cc index b930fd521a..6cafa2b50b 100644 --- a/lily/misc.cc +++ b/lily/misc.cc @@ -22,25 +22,6 @@ #include "offset.hh" #include "warn.hh" -/* - 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) {