Remove unnecessary code

This code appears twice, but the one of them is unnecessary.