[Lldb-commits] [lldb] r202440 - remove useless declarations found thanks to scan-build

Sylvestre Ledru sylvestre at debian.org
Thu Feb 27 14:46:23 PST 2014


Author: sylvestre
Date: Thu Feb 27 16:46:23 2014
New Revision: 202440

URL: http://llvm.org/viewvc/llvm-project?rev=202440&view=rev
Log:
remove useless declarations found thanks to scan-build

Modified:
    lldb/trunk/source/Breakpoint/BreakpointLocation.cpp
    lldb/trunk/source/Core/IOHandler.cpp

Modified: lldb/trunk/source/Breakpoint/BreakpointLocation.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Breakpoint/BreakpointLocation.cpp?rev=202440&r1=202439&r2=202440&view=diff
==============================================================================
--- lldb/trunk/source/Breakpoint/BreakpointLocation.cpp (original)
+++ lldb/trunk/source/Breakpoint/BreakpointLocation.cpp Thu Feb 27 16:46:23 2014
@@ -329,7 +329,6 @@ BreakpointLocation::ConditionSaysStop (E
     {
         if (!result_variable_sp)
         {
-            ret = false;
             error.SetErrorString("Expression did not return a result");
             return false;
         }

Modified: lldb/trunk/source/Core/IOHandler.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/IOHandler.cpp?rev=202440&r1=202439&r2=202440&view=diff
==============================================================================
--- lldb/trunk/source/Core/IOHandler.cpp (original)
+++ lldb/trunk/source/Core/IOHandler.cpp Thu Feb 27 16:46:23 2014
@@ -2113,13 +2113,11 @@ type summary add -s "${var.origin%S} ${v
                     
                 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





More information about the lldb-commits mailing list