Delete redundant lines