Remove redundant lines.