diff options
| author | Martin Hořeňovský | 2026-02-12 21:39:57 +0100 |
|---|---|---|
| committer | Martin Hořeňovský | 2026-02-13 21:17:37 +0100 |
| commit | 045ac7acce5205e529a7a6fda155cadc3dfe68e7 (patch) | |
| tree | 36c9289ebbe051791968cb997ff474669888b32c /src/catch2/interfaces | |
| parent | 72671fdbdfc7a6f1fad03af40e75ad8d881822a8 (diff) | |
| download | catch3-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.hpp | 2 |
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 |