comparison flys-artifacts/src/main/java/de/intevation/flys/themes/DefaultTheme.java @ 4049:8e66293c5369

Removed dead code
author Sascha L. Teichmann <teichmann@intevation.de>
date Sat, 06 Oct 2012 11:57:10 +0200
parents fe29b0226faf
children
comparison
equal deleted inserted replaced
4048:6ed8ebd48d6e 4049:8e66293c5369
171 * @param cr The ElementCreator. 171 * @param cr The ElementCreator.
172 * @param theme The document root element. 172 * @param theme The document root element.
173 */ 173 */
174 protected void appendFields(ElementCreator cr, Element theme) { 174 protected void appendFields(ElementCreator cr, Element theme) {
175 175
176 for (Map.Entry<String, ThemeField> entry: fields.entrySet()) { 176 for (ThemeField field: fields.values()) {
177 String name = entry.getKey();
178 ThemeField field = entry.getValue();
179
180 Document doc = field.toXML(); 177 Document doc = field.toXML();
181 Node root = doc.getFirstChild(); 178 Node root = doc.getFirstChild();
182 179
183 theme.appendChild(theme.getOwnerDocument().importNode(root, true)); 180 theme.appendChild(theme.getOwnerDocument().importNode(root, true));
184 } 181 }

http://dive4elements.wald.intevation.org