mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-19 06:46:43 +00:00
[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:
parent
4172fcc1eb
commit
94ce378ec0
@ -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,
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user