From b3363c8e72eca70d142c1d2f5d6cd21299e99a16 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Thu, 27 Dec 2018 08:51:17 +0100 Subject: [PATCH] Remove unused variable --- src/frontends/qt4/GuiToolbar.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/frontends/qt4/GuiToolbar.cpp b/src/frontends/qt4/GuiToolbar.cpp index 8966bcfdeb..1cedd30ce2 100644 --- a/src/frontends/qt4/GuiToolbar.cpp +++ b/src/frontends/qt4/GuiToolbar.cpp @@ -395,7 +395,6 @@ void DynamicMenuButton::updateTriggered() docstring_list::const_iterator cit = sel.begin(); docstring_list::const_iterator end = sel.end(); - Action * default_act = nullptr; for (unsigned int index = 0; cit != end; ++cit, ++index) { docstring const s = *cit; FuncRequest func(LFUN_PASTE, convert(index), @@ -404,9 +403,6 @@ void DynamicMenuButton::updateTriggered() + from_ascii(". ") + s ; Action * act = new Action(func, QIcon(), toqstr(lb), toqstr(s), this); m->addAction(act); - // The most recent one is the default - if (index == 0) - default_act = act; } Action * default_action = new Action(FuncRequest(LFUN_PASTE), getIcon(FuncRequest(LFUN_PASTE), false), -- 2.39.5