Remove unused code.

The removed code never has a chance to be executed. There is no
need to keep it either for "historical reasons" or "future reference".
Merge pull request #5761 from Wikia/dev-spontaneous-cleanup

Remove unused code.