mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-19 03:24:09 +00:00
Remove unused and odd code.
This code was never being used and any use of it would look fairly strange. For example, it would try to map a object_error::parse_failed to std::errc::invalid_argument. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210912 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -21,8 +21,6 @@ class _readobj_error_category : public std::error_category {
|
||||
public:
|
||||
const char* name() const LLVM_NOEXCEPT override;
|
||||
std::string message(int ev) const override;
|
||||
std::error_condition
|
||||
default_error_condition(int ev) const LLVM_NOEXCEPT override;
|
||||
};
|
||||
} // namespace
|
||||
|
||||
@ -48,13 +46,6 @@ std::string _readobj_error_category::message(int EV) const {
|
||||
"defined.");
|
||||
}
|
||||
|
||||
std::error_condition
|
||||
_readobj_error_category::default_error_condition(int EV) const {
|
||||
if (static_cast<readobj_error>(EV) == readobj_error::success)
|
||||
return std::error_condition();
|
||||
return std::errc::invalid_argument;
|
||||
}
|
||||
|
||||
namespace llvm {
|
||||
const std::error_category &readobj_category() {
|
||||
static _readobj_error_category o;
|
||||
|
Reference in New Issue
Block a user