Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
Nervonment committed Jun 1, 2024
1 parent b1f139a commit 5c5baef
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/neo/solver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ where
puzzle_arr: [[i8; 9]; 9],
puzzle: T,
solution_cnt: u32,
depth: u32,
}

impl<T> TechniquesSolver<T>
Expand All @@ -138,7 +137,6 @@ where
+ TrackingGridCountOfCandidate,
{
fn init_search(&mut self) {
self.depth = 0;
self.solution_cnt = 0;
self.puzzle = T::new(self.puzzle_arr);
}
Expand Down Expand Up @@ -172,7 +170,6 @@ where
));
// 可以通过 hidden pair 删除一些候选数字
if num1 > 0 {
self.depth += 1;
for num in &rem1 {
self.puzzle.remove_candidate_of_grid(r1, c1, *num);
}
Expand Down Expand Up @@ -237,7 +234,6 @@ where
puzzle_arr: puzzle,
puzzle: T::new(puzzle),
solution_cnt: 0,
depth: 1,
}
}

Expand Down

0 comments on commit 5c5baef

Please sign in to comment.