Delete dead code and superfluous semicolons