Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/src/catch2/interfaces
diff options
context:
space:
mode:
authorMartin Hořeňovský2026-02-12 21:39:57 +0100
committerMartin Hořeňovský2026-02-13 21:17:37 +0100
commit045ac7acce5205e529a7a6fda155cadc3dfe68e7 (patch)
tree36c9289ebbe051791968cb997ff474669888b32c /src/catch2/interfaces
parent72671fdbdfc7a6f1fad03af40e75ad8d881822a8 (diff)
downloadcatch3-045ac7acce5205e529a7a6fda155cadc3dfe68e7.tar.gz
Simplify IGeneratorTracker
* Removed `IGeneratorTracker::hasGenerator`, as it was never used. * Removed `IGeneratorTracker::setGenerator`, as actually using it after the tracker was used would lead to inconsistent behaviour. Instead, the tracker is given the generator it guards during construction.
Diffstat (limited to 'src/catch2/interfaces')
-rw-r--r--src/catch2/interfaces/catch_interfaces_generatortracker.hpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/catch2/interfaces/catch_interfaces_generatortracker.hpp b/src/catch2/interfaces/catch_interfaces_generatortracker.hpp
index 12cb9d79..2b2d7c0e 100644
--- a/src/catch2/interfaces/catch_interfaces_generatortracker.hpp
+++ b/src/catch2/interfaces/catch_interfaces_generatortracker.hpp
@@ -105,9 +105,7 @@ namespace Catch {
class IGeneratorTracker {
public:
virtual ~IGeneratorTracker(); // = default;
- virtual auto hasGenerator() const -> bool = 0;
virtual auto getGenerator() const -> Generators::GeneratorBasePtr const& = 0;
- virtual void setGenerator( Generators::GeneratorBasePtr&& generator ) = 0;
};
} // namespace Catch