Update stats.php

Deleted unused function