summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/IOHandler.cpp
diff options
context:
space:
mode:
authorSylvestre Ledru <sylvestre@debian.org>2014-02-27 22:46:23 +0000
committerSylvestre Ledru <sylvestre@debian.org>2014-02-27 22:46:23 +0000
commit451ca2924c6ecf542ffd94960d6c29453732384f (patch)
tree799b512f29f6ab6494c224db88ea63bc3244921e /lldb/source/Core/IOHandler.cpp
parentc9b7234e5cd125e35deb3464fcaf4b9674d51ac9 (diff)
downloadbcm5719-llvm-451ca2924c6ecf542ffd94960d6c29453732384f.tar.gz
bcm5719-llvm-451ca2924c6ecf542ffd94960d6c29453732384f.zip
remove useless declarations found thanks to scan-build
llvm-svn: 202440
Diffstat (limited to 'lldb/source/Core/IOHandler.cpp')
-rw-r--r--lldb/source/Core/IOHandler.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/lldb/source/Core/IOHandler.cpp b/lldb/source/Core/IOHandler.cpp
index 168a8f67a08..26039375105 100644
--- a/lldb/source/Core/IOHandler.cpp
+++ b/lldb/source/Core/IOHandler.cpp
@@ -2113,13 +2113,11 @@ type summary add -s "${var.origin%S} ${var.size%S}" curses::Rect
default:
{
- bool handled = false;
for (size_t i=0; i<num_submenus; ++i)
{
Menu *menu = submenus[i].get();
if (menu->GetKeyValue() == key)
{
- handled = true;
SetSelectedSubmenuIndex(i);
window.GetParent()->RemoveSubWindow(&window);
if (menu->Action() == MenuActionResult::Quit)
@@ -5302,4 +5300,4 @@ IOHandlerCursesGUI::GotEOF()
{
}
-#endif // #ifndef LLDB_DISABLE_CURSES \ No newline at end of file
+#endif // #ifndef LLDB_DISABLE_CURSES
OpenPOWER on IntegriCloud