delete unused if branch