Fix warning on gcc 4.9.1

Complains about the function not being used anywhere.