MAINT: stats: removed unused line of code.
MAINT: stats: remove unused imports
Merge pull request #2630 from WarrenWeckesser/maint-stats-cleanup

MAINT: stats: a bit of clean up