remove deprecated parameter pass by ref #3231
Merge pull request #3243 from baisong/3231-review

remove deprecated parameter pass by ref #3231