Remove unused method

Closes #6097