Removed dead code

This check is already made a few lines up, so this is never true.
Merge pull request #1 from markijbema/patch-1

Removed dead code