Mercurial > repos > IBDev-IBBoard.WarFoundry.API
diff API/Exporters/WarFoundryXMLWithXSLExporter.cs @ 419:71fceea2725b
Code tidy-up - remove warnings
* Add missing GetHashcode() implementations
* Remove unused exception variables
* Use unused event
* Remove dead code
* Properly override some methods
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 25 Sep 2011 20:52:27 +0100 |
parents | 2c52f0235774 |
children | cd367acd7c48 |
line wrap: on
line diff
--- a/API/Exporters/WarFoundryXMLWithXSLExporter.cs Sat Sep 24 11:59:39 2011 +0100 +++ b/API/Exporters/WarFoundryXMLWithXSLExporter.cs Sun Sep 25 20:52:27 2011 +0100 @@ -132,15 +132,7 @@ armyEquipmentItem.SetAttribute("name", equip.Name); int armyEquipAmount = 0; - - if (UnitEquipmentUtil.GetEquipmentAmount(uni, equip) == null) - { - armyEquipAmount = 0; - } - else - { - armyEquipAmount = (int)UnitEquipmentUtil.GetEquipmentAmount(uni, equip); - } + armyEquipAmount = (int)UnitEquipmentUtil.GetEquipmentAmount(uni, equip); if (UnitEquipmentUtil.GetEquipmentAmountIsRatio(uni, equip)) {