Remove unused functions from index.php
