This commit is contained in:
Vladislav Golubinov
2020-09-03 20:02:52 +03:00
parent 3df8472bf8
commit fb890e80dd
2 changed files with 15 additions and 18 deletions

View File

@ -58,10 +58,6 @@ public class App {
setArmy(factory.createArmy());
}
King getKing(final KingdomFactory factory) {
return factory.createKing();
}
public King getKing() {
return king;
}
@ -70,10 +66,6 @@ public class App {
this.king = king;
}
Castle getCastle(final KingdomFactory factory) {
return factory.createCastle();
}
public Castle getCastle() {
return castle;
}
@ -82,10 +74,6 @@ public class App {
this.castle = castle;
}
Army getArmy(final KingdomFactory factory) {
return factory.createArmy();
}
public Army getArmy() {
return army;
}