Remove useless block of code