Removing redundant set line