summaryrefslogtreecommitdiff
path: root/src/gui/popups/popupmenu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/popups/popupmenu.cpp')
-rw-r--r--src/gui/popups/popupmenu.cpp14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp
index cc9d74d34..774728748 100644
--- a/src/gui/popups/popupmenu.cpp
+++ b/src/gui/popups/popupmenu.cpp
@@ -982,12 +982,7 @@ void PopupMenu::handleLink(const std::string &link,
if (actorManager)
being = actorManager->findBeing(mBeingId);
- if (link == "split" && mItem)
- {
- ItemAmountWindow::showWindow(ItemAmountWindow::ItemSplit,
- inventoryWindow, mItem);
- }
- else if (link == "drop" && mItem)
+ if (link == "drop" && mItem)
{
if (!PlayerInfo::isItemProtected(mItem->getId()))
{
@@ -2749,13 +2744,6 @@ void PopupMenu::addUseDrop(const Item *const item, const bool isProtected)
mBrowserBox->addRow("drop", _("Drop"));
}
}
-
- if (inventoryHandler->canSplit(item))
- {
- // TRANSLATORS: popup menu item
- // TRANSLATORS: split items
- mBrowserBox->addRow("split", _("Split"));
- }
}
void PopupMenu::addGmCommands()