72x Fix gcc491 warning.

Removed unused local scope function.
Automatically ported from CMSSW_7_2_X #5325