aboutsummaryrefslogtreecommitdiff
path: root/src/libutil
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2022-04-06 15:05:08 +0200
committerEelco Dolstra <edolstra@gmail.com>2022-04-08 11:31:51 +0200
commit8bd9ebf52c9f7c5381d071250660a48d133b5e87 (patch)
tree1e1ffeaec2266ddbc9fb6dad2d7e34f4f49bc661 /src/libutil
parent168ef9f3ab73ac8ea2d8263304fd6df29a76e0e0 (diff)
Error: Remove unused sname() method
Diffstat (limited to 'src/libutil')
-rw-r--r--src/libutil/error.hh5
-rw-r--r--src/libutil/experimental-features.hh4
2 files changed, 0 insertions, 9 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"; }
};
}
diff --git a/src/libutil/experimental-features.hh b/src/libutil/experimental-features.hh
index 3a254b423..266e41a22 100644
--- a/src/libutil/experimental-features.hh
+++ b/src/libutil/experimental-features.hh
@@ -49,10 +49,6 @@ public:
ExperimentalFeature missingFeature;
MissingExperimentalFeature(ExperimentalFeature);
- virtual const char * sname() const override
- {
- return "MissingExperimentalFeature";
- }
};
}