cleanup deprecated code.

added @DeprecationInfo
compilation