remove unused vars

main
Brett 2023-03-01 16:00:40 -05:00
parent 168c5364d1
commit abf784868d
2 changed files with 5 additions and 6 deletions

View File

@ -8,7 +8,7 @@ public class Main {
public static void main(String[] args) {
GameEngine engine = new GameEngine();
Print test = new Print("Hello There", 2, 500);
Print test = new Print("Hello There", 2);
test.addColumn(new Print.Column("I am value 1"));
test.addColumn(new Print.Column("Super Value"));

View File

@ -36,18 +36,17 @@ public class Print {
private final ArrayList<Row> rows = new ArrayList<>();
private final ArrayList<Column> columns = new ArrayList<>();
private String tableName;
private int columnPadding;
private final String tableName;
private final int columnPadding;
private int maxColumnWidth;
public Print(String tableName, int columnPadding, int maxColumnWidth){
public Print(String tableName, int columnPadding){
this.tableName = tableName;
this.columnPadding = columnPadding;
this.maxColumnWidth = maxColumnWidth;
}
public Print(){
this("", 2, 500);
this("", 2);
}
private String createPadding(int amount) {