[PATCH] Remove unused arguments from index_fd()