add deprecation info and clean up code

no functional change
1 file changed