Removed redundant code

See https://github.com/WoltLab/WCF/pull/1380/files#r4840855