Remove redundant function declaration
Merge pull request #2944 from jaswilli/error-cleanup

Remove redundant function declaration