Remove unused code

Signed-off-by: Michal Čihař <michal@cihar.com>
We no longer use this cache

Signed-off-by: Michal Čihař <michal@cihar.com>
Need to update has_check flag even if check is not ignored anymore

Signed-off-by: Michal Čihař <michal@cihar.com>
Use iterator here as we need no caching

Signed-off-by: Michal Čihař <michal@cihar.com>