[cleanup] remove obsolete warnings and commented code not needed anymore