Remove redundant statements