Removing unused variables in metrics_api in statistics.pp

Change-Id: I8853f853ed098b800eb9755d9a4e235ce1ec95e6