clean up deprecated/removed code in em2d
suppress warnings