Skip to content

Commit

Permalink
chore: remove duplicated closed from crossword generator (#572)
Browse files Browse the repository at this point in the history
  • Loading branch information
AyadLaouissi authored Jun 17, 2024
1 parent ac1ba15 commit af85e40
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ class AsymmetricalCrosswordGenerator extends CrosswordGenerator {
.add(WordCandidate(start: location, direction: Direction.down));
}
}
candidates.removeWhere(closed.contains);

return candidates;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,6 @@ class SymmetricalCrosswordGenerator extends CrosswordGenerator {
.add(WordCandidate(start: location, direction: Direction.down));
}
}
candidates.removeWhere(closed.contains);

return candidates;
}
Expand Down

0 comments on commit af85e40

Please sign in to comment.