Remove unused if statement