From: <aki...@us...> - 2008-08-06 17:58:56
|
Revision: 4773 http://gridarta.svn.sourceforge.net/gridarta/?rev=4773&view=rev Author: akirschbaum Date: 2008-08-06 17:59:02 +0000 (Wed, 06 Aug 2008) Log Message: ----------- Remove unused code. Modified Paths: -------------- trunk/daimonin/src/daieditor/gui/map/MapRenderer.java trunk/src/app/net/sf/gridarta/archtype/ArchetypeAttribute.java trunk/src/app/net/sf/gridarta/archtype/ArchetypeTypeParser.java Modified: trunk/daimonin/src/daieditor/gui/map/MapRenderer.java =================================================================== --- trunk/daimonin/src/daieditor/gui/map/MapRenderer.java 2008-08-06 17:58:25 UTC (rev 4772) +++ trunk/daimonin/src/daieditor/gui/map/MapRenderer.java 2008-08-06 17:59:02 UTC (rev 4773) @@ -46,8 +46,6 @@ private final ImageIcon emptyTileIcon = SystemIcons.getEmptyTileIcon(); - private final CMainControl mainControl; - @NotNull private final EditTypes<GameObject, MapArchObject, Archetype, CMapViewBasic> editTypes; @@ -61,7 +59,6 @@ */ public MapRenderer(final CMainControl mainControl, @NotNull final EditTypes<GameObject, MapArchObject, Archetype, CMapViewBasic> editTypes, final MapControl<GameObject, MapArchObject, Archetype, CMapViewBasic> mapControl, final MapGrid mapGrid, @NotNull final FaceObjects faceObjects) { super(mainControl, mapControl, mapGrid, IGUIConstants.TILE_ISO_XLEN, 2 * IGUIConstants.TILE_ISO_YLEN, faceObjects); - this.mainControl = mainControl; this.editTypes = editTypes; } Modified: trunk/src/app/net/sf/gridarta/archtype/ArchetypeAttribute.java =================================================================== --- trunk/src/app/net/sf/gridarta/archtype/ArchetypeAttribute.java 2008-08-06 17:58:25 UTC (rev 4772) +++ trunk/src/app/net/sf/gridarta/archtype/ArchetypeAttribute.java 2008-08-06 17:59:02 UTC (rev 4773) @@ -45,9 +45,6 @@ /** The width (columns) for input fields like textfields or JChooseBoxes. */ public static final int TEXTFIELD_COLUMNS = 18; - /** Next CFArchAttrib in linked list. */ - private ArchetypeAttribute<G, A, R> next; - /** Original attribute name (from the CF arches). */ @NotNull private final String nameOld; @@ -140,10 +137,6 @@ return inputLength; } - public void setNext(final ArchetypeAttribute<G, A, R> cfAttr) { - next = cfAttr; - } - public abstract GuiInfo<G, A, R> createGui(@NotNull final String nameOld, @NotNull final G gameObject, @NotNull final R archetype, @NotNull final ArchetypeType type, @NotNull final Color background, final Component parent); /** Modified: trunk/src/app/net/sf/gridarta/archtype/ArchetypeTypeParser.java =================================================================== --- trunk/src/app/net/sf/gridarta/archtype/ArchetypeTypeParser.java 2008-08-06 17:58:25 UTC (rev 4772) +++ trunk/src/app/net/sf/gridarta/archtype/ArchetypeTypeParser.java 2008-08-06 17:59:02 UTC (rev 4773) @@ -358,16 +358,12 @@ * @param inSection true if this attribute belongs to a (custom-defined) * section * @param section name of the section (only relevant if 'inSection'==true) - * @param attrList linked list of attributes + * @param attrList list of attributes * @param tlist arch type list */ private void parseAttribute(final ArchetypeType archetypeType, final Element elem, final List<String> secNames, final boolean inSection, final String section, final List<ArchetypeAttribute<G, A, R>> attrList, final ArchetypeTypeSet<G, A, R> tlist) { final ArchetypeAttribute<G, A, R> attrib = archetypeAttributeParser.load(elem, tlist, archetypeType.typeName); if (attrib != null) { - // add this attribute to the list: - if (!attrList.isEmpty()) { - attrList.get(attrList.size() - 1).setNext(attrib); - } attrList.add(attrib); // parsing succeeded, now assign this attribute to a section This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |