Fix build: Remove redundant function declaration.

(cherry picked from commit 4c07869d74b7ca5126b06e9b8639c8dcd54f5df0)