closed #2393:fix a bug caused by marking functions as deprecated
Merge pull request #3220 from minggo/develop

closed #2393:fix a bug caused by marking functions as deprecated