summaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
Diffstat (limited to 'src/actions')
-rw-r--r--src/actions/actions.cpp54
-rw-r--r--src/actions/actions.h4
2 files changed, 0 insertions, 58 deletions
diff --git a/src/actions/actions.cpp b/src/actions/actions.cpp
index dce003cc0..db2a864e5 100644
--- a/src/actions/actions.cpp
+++ b/src/actions/actions.cpp
@@ -1435,58 +1435,4 @@ impHandler(invToStorage)
return true;
}
-impHandler(invToStorage10)
-{
- Item *const item = getItemByInvIndex(event);
- if (!item)
- return true;
-
- int cnt = 10;
- if (cnt > item->getQuantity())
- cnt = item->getQuantity();
- inventoryHandler->moveItem2(Inventory::INVENTORY,
- item->getInvIndex(), cnt,
- Inventory::STORAGE);
- return true;
-}
-
-impHandler(invToStorageHalf)
-{
- Item *const item = getItemByInvIndex(event);
- if (!item)
- return true;
-
- inventoryHandler->moveItem2(Inventory::INVENTORY,
- item->getInvIndex(),
- item->getQuantity() / 2,
- Inventory::STORAGE);
- return true;
-}
-
-impHandler(invToStorageAll1)
-{
- Item *const item = getItemByInvIndex(event);
- if (!item)
- return true;
-
- inventoryHandler->moveItem2(Inventory::INVENTORY,
- item->getInvIndex(),
- item->getQuantity() - 1,
- Inventory::STORAGE);
- return true;
-}
-
-impHandler(invToStorageAll)
-{
- Item *const item = getItemByInvIndex(event);
- if (!item)
- return true;
-
- inventoryHandler->moveItem2(Inventory::INVENTORY,
- item->getInvIndex(),
- item->getQuantity(),
- Inventory::STORAGE);
- return true;
-}
-
} // namespace Actions
diff --git a/src/actions/actions.h b/src/actions/actions.h
index 14027bca9..eaf900fbe 100644
--- a/src/actions/actions.h
+++ b/src/actions/actions.h
@@ -99,10 +99,6 @@ namespace Actions
decHandler(useItem);
decHandler(useItemInv);
decHandler(invToStorage);
- decHandler(invToStorage10);
- decHandler(invToStorageHalf);
- decHandler(invToStorageAll1);
- decHandler(invToStorageAll);
} // namespace Actions
#undef decHandler