summaryrefslogtreecommitdiff
path: root/src/Game/UI
diff options
context:
space:
mode:
authorLéo Lam <leo@leolam.fr>2021-01-08 12:47:31 +0100
committerLéo Lam <leo@leolam.fr>2021-01-08 12:47:44 +0100
commite3791db95eabbb11575bbd346d935773e0702ed0 (patch)
tree8cab88d14562fc45920393ac8ee2f82058c6e881 /src/Game/UI
parent21cd25bcb496ade1e1e82924a6f88ff189825c75 (diff)
Remove incomplete match
Diffstat (limited to 'src/Game/UI')
-rw-r--r--src/Game/UI/uiPauseMenuDataMgr.cpp46
1 files changed, 0 insertions, 46 deletions
diff --git a/src/Game/UI/uiPauseMenuDataMgr.cpp b/src/Game/UI/uiPauseMenuDataMgr.cpp
index 23aae822..a7be9a98 100644
--- a/src/Game/UI/uiPauseMenuDataMgr.cpp
+++ b/src/Game/UI/uiPauseMenuDataMgr.cpp
@@ -268,52 +268,6 @@ void PauseMenuDataMgr::removeArrow(const sead::SafeString& arrow_name, int count
ksys::gdt::setFlag_PorchItem_Value1(num, idx);
}
-int PauseMenuDataMgr::getItemCount(const sead::SafeString& name, bool x) const {
- const auto type = getType(name);
- if (isPouchItemInvalid(type))
- return 0;
-
- sead::SafeString same_group_actor_name;
- ksys::act::getSameGroupActorName(&same_group_actor_name, name);
-
- PouchItem* head;
- switch (type) {
- case PouchItemType::Weapon:
- head = getItemHead(PouchCategory::Weapon);
- break;
- case PouchItemType::Bow:
- head = getItemHead(PouchCategory::Bow);
- break;
- case PouchItemType::Arrow:
- head = getItemHead(PouchCategory::Bow);
- break;
- case PouchItemType::Shield:
- head = getItemHead(PouchCategory::Shield);
- break;
- case PouchItemType::Food:
- head = getItemHead(PouchCategory::Food);
- break;
- case PouchItemType::KeyItem:
- head = getItemHead(PouchCategory::KeyItem);
- break;
- default:
- if (type >= PouchItemType::Material)
- head = getItemHead(PouchCategory::Material);
- else
- head = getItemHead(PouchCategory::Armor);
- break;
- }
-
- for (auto* item = head; item; item = nextItem(item)) {
- if (item->getType() > PouchItemType::Arrow)
- break;
-
- // FIXME: WIP
- }
-
- return 0;
-}
-
void PauseMenuDataMgr::setWeaponItemValue(s32 value, PouchItemType type) {
if (isPouchItemNotWeapon(type))
return;