From 7a580f3c28cf47a7e489faa1fc1ab7b88d9a5dbd Mon Sep 17 00:00:00 2001 From: David Spickett Date: Wed, 16 Jun 2021 13:56:51 +0100 Subject: [lldb] Remove redundant calls to set eReturnStatusFailed Since https://reviews.llvm.org/D103701 AppendError<...> sets this for you. This change includes all of the non-command uses. Some uses remain where it's either tricky to reason about the logic, or they aren't paired with AppendError calls. Reviewed By: teemperor Differential Revision: https://reviews.llvm.org/D104379 --- lldb/source/Interpreter/ScriptInterpreter.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'lldb/source/Interpreter/ScriptInterpreter.cpp') diff --git a/lldb/source/Interpreter/ScriptInterpreter.cpp b/lldb/source/Interpreter/ScriptInterpreter.cpp index 7fb07fb..3802f2d 100644 --- a/lldb/source/Interpreter/ScriptInterpreter.cpp +++ b/lldb/source/Interpreter/ScriptInterpreter.cpp @@ -36,14 +36,12 @@ ScriptInterpreter::ScriptInterpreter( void ScriptInterpreter::CollectDataForBreakpointCommandCallback( std::vector> &bp_options_vec, CommandReturnObject &result) { - result.SetStatus(eReturnStatusFailed); result.AppendError( "This script interpreter does not support breakpoint callbacks."); } void ScriptInterpreter::CollectDataForWatchpointCommandCallback( WatchpointOptions *bp_options, CommandReturnObject &result) { - result.SetStatus(eReturnStatusFailed); result.AppendError( "This script interpreter does not support watchpoint callbacks."); } -- cgit v1.1