Fix warning on gcc 4.9.1

Complains about the function not being used anywhere.
Merge pull request #6698 from ktf/fix-warning

Fix warning on gcc 4.9.1
Merge remote branch 'origin/CMSSW_7_4_X' into CMSSW_7_0_X