don't need these anymore
This commit is contained in:
parent
58d5d1ed74
commit
8acbb91416
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user