[WIP] Useless code removal and code cleanup #5

Manually merged
regar42 merged 5 commits from fixUnneededCode into lastDijsktraClasses 2017-12-10 16:48:34 +00:00
2 changed files with 1 additions and 34 deletions
Showing only changes of commit d836c2c9f0 - Show all commits

No files matched your search

+1 -3
View File
@@ -2,8 +2,6 @@ package dijkstra;
public interface VertexInterface { public interface VertexInterface {
/** Compare a Vertex to another */
public boolean compareTo(VertexInterface vertex) ;
public String getLabel() ; public String getLabel() ;
} }
-31
View File
@@ -26,13 +26,6 @@ public abstract class Box
} }
public boolean compareTo(VertexInterface vertex) {
if (this.getLabel() == vertex.getLabel()) {
return true ;
}
return false ;
}
public boolean isWalkable() { public boolean isWalkable() {
return true ; return true ;
} }
@@ -49,42 +42,18 @@ public abstract class Box
return neighbourList; return neighbourList;
} }
public void setNeighbourList(ArrayList<Box> neighbourList) {
this.neighbourList = neighbourList;
}
public int getX() { public int getX() {
return x; return x;
} }
public void setX(int x) {
this.x = x;
}
public int getY() { public int getY() {
return y; return y;
} }
public void setY(int y) {
this.y = y;
}
public String getLabel() { public String getLabel() {
return label; return label;
} }
public void setLabel(String label) {
this.label = label;
}
public Maze getMaze() {
return maze;
}
public void setMaze(Maze maze) {
this.maze = maze;
}
public String toString() { public String toString() {
return "Label: " + label + ", x: " + x + ", y: " + y; return "Label: " + label + ", x: " + x + ", y: " + y;
} }