Removed obsolete code

Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
2017-04-18 20:17:50 +02:00
parent f1394c3334
commit 7335c452de

View File

@ -224,14 +224,12 @@ public class Main {
// menu options
final int NEW_AGENT = 0;
final int LIST_AGENTS = 1;
final int CHANGE_AGENT = 2;
final int BACK = 3;
final int BACK = 2;
// estate management menu
Menu estateAgentMenu = new Menu("EstateAgent management");
estateAgentMenu.addEntry("Create EstateAgent", NEW_AGENT);
estateAgentMenu.addEntry("List EstateAgents", LIST_AGENTS);
estateAgentMenu.addEntry("Change EstateAgent", CHANGE_AGENT);
estateAgentMenu.addEntry("Back to the main menu", BACK);
// process input
@ -242,9 +240,6 @@ public class Main {
case NEW_AGENT:
newEstateAgent();
break;
case CHANGE_AGENT:
changeEstateAgent();
break;
case LIST_AGENTS:
listEstateAgents();
break;
@ -270,22 +265,6 @@ public class Main {
System.out.println("EstateAgent with the ID " + agent.getId() + " was created.");
}
/**
* TODO Change an estate agent after the usesr has entered the necessary data.
*/
private static void changeEstateAgent() {
EstateAgent agent = new EstateAgent();//logged in Agent
agent.setName(FormUtil.readString("Name"));
agent.setAddress(FormUtil.readString("Address"));
agent.setLogin(FormUtil.readString("Login"));
agent.setPassword(FormUtil.readString("Password"));
//_orm.persist(agent);
System.out.println("EstateAgent with the ID " + agent.getId() + " was updated.");
}
/**
* List estate agents.
*/