Removes redundant test for sample weight