From 451ca2924c6ecf542ffd94960d6c29453732384f Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Thu, 27 Feb 2014 22:46:23 +0000 Subject: [PATCH] remove useless declarations found thanks to scan-build llvm-svn: 202440 --- lldb/source/Breakpoint/BreakpointLocation.cpp | 1 - lldb/source/Core/IOHandler.cpp | 4 +--- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/lldb/source/Breakpoint/BreakpointLocation.cpp b/lldb/source/Breakpoint/BreakpointLocation.cpp index 2c75a11e9788..cd5cbcac550b 100644 --- a/lldb/source/Breakpoint/BreakpointLocation.cpp +++ b/lldb/source/Breakpoint/BreakpointLocation.cpp @@ -329,7 +329,6 @@ BreakpointLocation::ConditionSaysStop (ExecutionContext &exe_ctx, Error &error) { if (!result_variable_sp) { - ret = false; error.SetErrorString("Expression did not return a result"); return false; } diff --git a/lldb/source/Core/IOHandler.cpp b/lldb/source/Core/IOHandler.cpp index 168a8f67a08e..26039375105d 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; iGetKeyValue() == 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