Remove unused query