Remove an unused function named query