remove deprecated function. Closes #3582.