Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/fixation/FunctionSelect.java @ 4049:8e66293c5369
Removed dead code
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Sat, 06 Oct 2012 11:57:10 +0200 |
parents | eb5564662e19 |
children |
comparison
equal
deleted
inserted
replaced
4048:6ed8ebd48d6e | 4049:8e66293c5369 |
---|---|
1 package de.intevation.flys.artifacts.states.fixation; | 1 package de.intevation.flys.artifacts.states.fixation; |
2 | 2 |
3 import java.util.Collection; | 3 import java.util.Collection; |
4 import java.util.Iterator; | |
5 | 4 |
6 import org.apache.log4j.Logger; | |
7 import org.w3c.dom.Element; | 5 import org.w3c.dom.Element; |
8 | 6 |
9 import de.intevation.artifacts.Artifact; | 7 import de.intevation.artifacts.Artifact; |
10 import de.intevation.artifacts.CallContext; | 8 import de.intevation.artifacts.CallContext; |
11 import de.intevation.artifacts.common.utils.XMLUtils; | 9 import de.intevation.artifacts.common.utils.XMLUtils; |
15 | 13 |
16 /** | 14 /** |
17 * @author <a href="mailto:raimund.renkert@intevation.de">Raimund Renkert</a> | 15 * @author <a href="mailto:raimund.renkert@intevation.de">Raimund Renkert</a> |
18 */ | 16 */ |
19 public class FunctionSelect extends DefaultState { | 17 public class FunctionSelect extends DefaultState { |
20 | |
21 /** The logger used in this class. */ | |
22 private static Logger logger = Logger.getLogger(FunctionSelect.class); | |
23 | 18 |
24 /** | 19 /** |
25 * The default constructor that initializes an empty State object. | 20 * The default constructor that initializes an empty State object. |
26 */ | 21 */ |
27 public FunctionSelect() { | 22 public FunctionSelect() { |
40 CallContext context) | 35 CallContext context) |
41 { | 36 { |
42 FunctionFactory ff = FunctionFactory.getInstance(); | 37 FunctionFactory ff = FunctionFactory.getInstance(); |
43 Collection<Function> fc = ff.getFunctions(); | 38 Collection<Function> fc = ff.getFunctions(); |
44 Element[] functions = new Element[fc.size()]; | 39 Element[] functions = new Element[fc.size()]; |
45 Iterator<Function> i = fc.iterator(); | |
46 | 40 |
47 int j = 0; | 41 int j = 0; |
48 while(i.hasNext()) { | 42 for (Function f: fc) { |
49 Function f = i.next(); | |
50 String n = f.getName(); | 43 String n = f.getName(); |
51 String d = f.getDescription(); | 44 String d = f.getDescription(); |
52 functions[j] = createItem(ec, new String[] {d, n}); | 45 functions[j] = createItem(ec, new String[] {d, n}); |
53 j++; | 46 j++; |
54 } | 47 } |