From eaf60a4411f79a1addfa6c5d8ddf4b47e082881e Mon Sep 17 00:00:00 2001 From: David Spickett Date: Thu, 17 Jun 2021 12:32:23 +0100 Subject: [lldb] Remove redundant calls to set eReturnStatusFailed This is part 2, covering the commands source. Some uses remain where it's tricky to see what the logic is or they are not used with AppendError. Reviewed By: teemperor Differential Revision: https://reviews.llvm.org/D104448 --- lldb/source/Commands/CommandObjectBreakpointCommand.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'lldb/source/Commands/CommandObjectBreakpointCommand.cpp') diff --git a/lldb/source/Commands/CommandObjectBreakpointCommand.cpp b/lldb/source/Commands/CommandObjectBreakpointCommand.cpp index 4117eda..26d35c8 100644 --- a/lldb/source/Commands/CommandObjectBreakpointCommand.cpp +++ b/lldb/source/Commands/CommandObjectBreakpointCommand.cpp @@ -371,7 +371,6 @@ protected: if (num_breakpoints == 0) { result.AppendError("No breakpoints exist to have commands added"); - result.SetStatus(eReturnStatusFailed); return false; } @@ -545,14 +544,12 @@ protected: if (num_breakpoints == 0) { result.AppendError("No breakpoints exist to have commands deleted"); - result.SetStatus(eReturnStatusFailed); return false; } if (command.empty()) { result.AppendError( "No breakpoint specified from which to delete the commands"); - result.SetStatus(eReturnStatusFailed); return false; } @@ -577,7 +574,6 @@ protected: result.AppendErrorWithFormat("Invalid breakpoint ID: %u.%u.\n", cur_bp_id.GetBreakpointID(), cur_bp_id.GetLocationID()); - result.SetStatus(eReturnStatusFailed); return false; } } else { @@ -628,14 +624,12 @@ protected: if (num_breakpoints == 0) { result.AppendError("No breakpoints exist for which to list commands"); - result.SetStatus(eReturnStatusFailed); return false; } if (command.empty()) { result.AppendError( "No breakpoint specified for which to list the commands"); - result.SetStatus(eReturnStatusFailed); return false; } @@ -660,7 +654,6 @@ protected: result.AppendErrorWithFormat("Invalid breakpoint ID: %u.%u.\n", cur_bp_id.GetBreakpointID(), cur_bp_id.GetLocationID()); - result.SetStatus(eReturnStatusFailed); return false; } } @@ -695,7 +688,6 @@ protected: } else { result.AppendErrorWithFormat("Invalid breakpoint ID: %u.\n", cur_bp_id.GetBreakpointID()); - result.SetStatus(eReturnStatusFailed); } } } -- cgit v1.1