Remove unreachable code.
Merge pull request #9105 from jakubroztocil/devel

Remove unreachable code