Remove useless lines of code