[index] Fix unused parameters warnings.