Remove unused code in redis aggregate counter.