diff --git a/src/main.rs b/src/main.rs index c7fb28d..eb33c6e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -280,13 +280,6 @@ impl Sudoku { } fn remove_allowed(&mut self, row_index: usize, column_index: usize, blocking_cells: &Vec) -> Result<(), WaveError> { - if let Some(state) = self.grid[row_index][column_index].get_state() { - for blocking_cell in blocking_cells { - if blocking_cell.state == state { - return Err(WaveError::Contradiction) - } - } - } match self.grid[row_index][column_index].remove_allowed(blocking_cells) { Ok(result) => { let cell::RemoveResult::Collapsed(state) = result else { @@ -407,7 +400,6 @@ impl Sudoku { } } println!(); - if self.debug_display { println!("--------"); }