From 932ca0711594ac4be98c456495bc48e22082d516 Mon Sep 17 00:00:00 2001 From: Peter Hormanns Date: Mon, 21 Jan 2013 13:41:41 +0100 Subject: [PATCH] clean code --- hsarback/src/de/hsadmin/remote/PacRemote.java | 24 ------------------- 1 file changed, 24 deletions(-) diff --git a/hsarback/src/de/hsadmin/remote/PacRemote.java b/hsarback/src/de/hsadmin/remote/PacRemote.java index 1ccbef7..2170ccd 100644 --- a/hsarback/src/de/hsadmin/remote/PacRemote.java +++ b/hsarback/src/de/hsadmin/remote/PacRemote.java @@ -30,7 +30,6 @@ public class PacRemote extends AbstractRemote { resultMap.put("cancelled", TextUtil.format(cancelled)); } resultMap.put("basepac", pac.getBasepac().getName()); - Map components = new HashMap(); Set pacComponents = pac.getPacComponents(); for (PacComponent comp : pacComponents) { @@ -40,28 +39,6 @@ public class PacRemote extends AbstractRemote { } } resultMap.put("components", components); - -// SortedSet sortedComponents = new TreeSet(new Comparator() { -// @Override -// public int compare(PacComponent o1, PacComponent o2) { -// return o2.getBaseComponent().getSorting() - o1.getBaseComponent().getSorting(); -// } -// }); -// sortedComponents.addAll(pac.getPacComponents()); -// StringBuffer bf = new StringBuffer(); -// boolean empty = true; -// for (PacComponent comp : sortedComponents) { -// if (comp.getQuantity() > 0) { -// if (!empty) { -// bf.append("; "); -// } -// bf.append(comp.getBaseComponent().getFeature()); -// bf.append("="); -// bf.append(comp.getQuantity()); -// empty = false; -// } -// } -// resultMap.put("components", bf.toString()); } @Override @@ -79,7 +56,6 @@ public class PacRemote extends AbstractRemote { basePac.setName(basePacName); pac.setBasepac(basePac); } -// pac.setCreated(new Date()); String createdStr = (String) setParams.get("created"); if (createdStr != null && !createdStr.isEmpty()) { Date createdDate = TextUtil.parse(createdStr);