Removed unused code from index file