ratecontrol: remove dead code

Imported from x264; likely a part of 2-pass. In any case, not relevant here.
level: remove conditional expression warning
ratecontrol: partial backout of 6284b30a0fdd, get rid of debugging notes.
level: fix MSVC compile error, give sqrt() argument unambiguous data type
ratecontrol: more dead code removed