Remove duplicated method declaration caused by bad merge.

Closes #5439