Valgrind: Remove unused function.

Change-Id: Ia14634a95e8227b65719052482dec9e9fd456877
Reviewed-by: hjk <hjk121@nokiamail.com>