Remove obsolete if statement