diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2022-04-06 15:05:08 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2022-04-08 11:31:51 +0200 |
commit | 8bd9ebf52c9f7c5381d071250660a48d133b5e87 (patch) | |
tree | 1e1ffeaec2266ddbc9fb6dad2d7e34f4f49bc661 /src/libutil/error.hh | |
parent | 168ef9f3ab73ac8ea2d8263304fd6df29a76e0e0 (diff) |
Error: Remove unused sname() method
Diffstat (limited to 'src/libutil/error.hh')
-rw-r--r-- | src/libutil/error.hh | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/libutil/error.hh b/src/libutil/error.hh index 005c2c225..348018f57 100644 --- a/src/libutil/error.hh +++ b/src/libutil/error.hh @@ -161,8 +161,6 @@ public: : err(e) { } - virtual const char* sname() const { return "BaseError"; } - #ifdef EXCEPTION_NEEDS_THROW_SPEC ~BaseError() throw () { }; const char * what() const throw () { return calcWhat().c_str(); } @@ -189,7 +187,6 @@ public: { \ public: \ using superClass::superClass; \ - virtual const char* sname() const override { return #newClass; } \ } MakeError(Error, BaseError); @@ -209,8 +206,6 @@ public: auto hf = hintfmt(args...); err.msg = hintfmt("%1%: %2%", normaltxt(hf.str()), strerror(errNo)); } - - virtual const char* sname() const override { return "SysError"; } }; } |