[lldb] Remove unused Status::SetMachError (NFC) (#72668)

This function is never used, neither here nor downstream in the Swift
fork. As far as I can tell, the same is true for the corresponding
eErrorTypeMachKernel but as that's part of the SB API we cannot remove
that.
This commit is contained in:
Jonas Devlieghere 2023-11-17 10:17:48 -08:00 committed by GitHub
parent 4172fcc1eb
commit 94ce378ec0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 17 deletions

View File

@ -114,15 +114,6 @@ public:
/// The error type enumeration value.
lldb::ErrorType GetType() const;
/// Set accessor from a kern_return_t.
///
/// Set accessor for the error value to \a err and the error type to \c
/// MachKernel.
///
/// \param[in] err
/// A mach error code.
void SetMachError(uint32_t err);
void SetExpressionError(lldb::ExpressionResults, const char *mssg);
int SetExpressionErrorWithFormat(lldb::ExpressionResults, const char *format,

View File

@ -180,14 +180,6 @@ ErrorType Status::GetType() const { return m_type; }
// otherwise non-success result.
bool Status::Fail() const { return m_code != 0; }
// Set accessor for the error value to "err" and the type to
// "eErrorTypeMachKernel"
void Status::SetMachError(uint32_t err) {
m_code = err;
m_type = eErrorTypeMachKernel;
m_string.clear();
}
void Status::SetExpressionError(lldb::ExpressionResults result,
const char *mssg) {
m_code = result;