From b6fa84983bfe0a9fcfd915f6f170c7bfdde1510b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 12 Dec 2014 22:48:02 +0300 Subject: Remove "split" popup menu handler. --- src/gui/popups/popupmenu.cpp | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'src/gui/popups') 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() -- cgit v1.2.3-70-g09d2