Skip to content

Commit 1006d10

Browse files
committed
remove class and logger initialization in CandyGame
1 parent b6188dc commit 1006d10

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

type-object/src/main/java/com/iluwatar/typeobject/Candy.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,6 @@ enum Type {
4848
private int points;
4949
private final Type type;
5050

51-
public Type getType() {
52-
return type;
53-
}
54-
public int getPoints() {
55-
return points;
56-
}
5751
Candy(String name, String parentName, Type type, int points) {
5852
this.name = name;
5953
this.parent = null;

type-object/src/main/java/com/iluwatar/typeobject/CandyGame.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
import com.iluwatar.typeobject.Candy.Type;
2828
import java.util.ArrayList;
2929
import java.util.List;
30-
import org.slf4j.Logger;
3130
import org.slf4j.LoggerFactory;
3231

3332
import lombok.extern.slf4j.Slf4j;
@@ -43,7 +42,7 @@ public class CandyGame {
4342
Cell[][] cells;
4443
CellPool pool;
4544
int totalPoints;
46-
private static final Logger LOGGER = LoggerFactory.getLogger(CandyGame.class);
45+
4746
CandyGame(int num, CellPool pool) {
4847
this.cells = new Cell[num][num];
4948
this.pool = pool;

0 commit comments

Comments
 (0)