Skip to content

Commit 9fde3c5

Browse files
committed
Remove unused field reported by SpotBugs.
1 parent 8aaf33a commit 9fde3c5

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/main/java/com/thealgorithms/backtracking/WordSearch.java

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,6 @@
3535
* - Stack space for the recursive DFS function, where L is the maximum depth of recursion (length of the word).
3636
*/
3737
public class WordSearch {
38-
private char[][] board;
39-
private String word;
40-
41-
/**
42-
* Checks if the given (x, y) coordinates are valid positions in the board.
43-
*
44-
* @param x The row index.
45-
* @param y The column index.
46-
* @return True if the coordinates are within the bounds of the board; false otherwise.
47-
*/
48-
private boolean isValid(int x, int y) {
49-
return x >= 0 && x < board.length && y >= 0 && y < board[0].length;
50-
}
5138

5239
/**
5340
* Performs Depth First Search (DFS) from the cell (x, y)

0 commit comments

Comments
 (0)