Skip matching functions that have reach the maximum count check.
Remove dead code.