mirror of
https://github.com/intel/llvm.git
synced 2026-01-16 05:32:28 +08:00
remove useless declarations found thanks to scan-build
llvm-svn: 202440
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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
|
||||
#endif // #ifndef LLDB_DISABLE_CURSES
|
||||
|
||||
Reference in New Issue
Block a user