don't need these anymore

This commit is contained in:
andy 2021-07-31 04:36:12 +00:00
parent 58d5d1ed74
commit 8acbb91416
2 changed files with 0 additions and 24 deletions

View File

@ -90,20 +90,6 @@ impl ShopItem for ArmorShopItem {
}
}
// impl ArmorShopItem {
// pub fn armor_from_item(a: &Armor) -> ArmorShopItem {
// ArmorShopItem::Frame(a.armor, a.slots as usize)
// }
// pub fn shield_from_item(s: &Shield) -> ArmorShopItem {
// ArmorShopItem::Barrier(s.shield)
// }
// pub fn unit_from_item(u: &Unit) -> ArmorShopItem {
// ArmorShopItem::Unit(u.unit)
// }
// }
impl From<&Armor> for ArmorShopItem {
fn from(armor: &Armor) -> ArmorShopItem {
ArmorShopItem::Frame(armor.armor, armor.slots as usize)

View File

@ -96,16 +96,6 @@ impl ShopItem for ToolShopItem {
}
}
// impl ToolShopItem {
// pub fn tool_from_item(t: &Tool) -> ToolShopItem {
// ToolShopItem::Tool(t.tool)
// }
// pub fn tech_from_item(d: &TechniqueDisk) -> ToolShopItem {
// ToolShopItem::Tech(*d)
// }
// }
impl From<&Tool> for ToolShopItem {
fn from(tool: &Tool) -> ToolShopItem {
ToolShopItem::Tool(tool.tool)