Removed dead code.
Now properly remove query results which no longer match.