diff options
| author | Martin Hořeňovský | 2025-07-20 18:31:24 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2025-07-20 18:32:25 +0200 |
| commit | ce128f584c293b17362d838a8dc65bc81ffc8dff (patch) | |
| tree | b98b22f8ddb9da144b93ffd88331d4c1a8c6c715 /src | |
| parent | db6171a706afb712d5ec13cc7b98e256e760fcb2 (diff) | |
| download | catch3-ce128f584c293b17362d838a8dc65bc81ffc8dff.tar.gz | |
Remove assertionPassed fast path from the capture interface
As it is an internal helper for RunContext to speed-up handling of
succesfull assertions, I have no idea why it was added to the
interface back when it was first implemented.
Diffstat (limited to 'src')
| -rw-r--r-- | src/catch2/interfaces/catch_interfaces_capture.hpp | 2 | ||||
| -rw-r--r-- | src/catch2/internal/catch_run_context.hpp | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/src/catch2/interfaces/catch_interfaces_capture.hpp b/src/catch2/interfaces/catch_interfaces_capture.hpp index 9e5431d2..dc9500b6 100644 --- a/src/catch2/interfaces/catch_interfaces_capture.hpp +++ b/src/catch2/interfaces/catch_interfaces_capture.hpp @@ -93,9 +93,7 @@ namespace Catch { AssertionReaction &reaction ) = 0; - virtual bool lastAssertionPassed() = 0; - virtual void assertionPassed() = 0; // Deprecated, do not use: virtual std::string getCurrentTestName() const = 0; diff --git a/src/catch2/internal/catch_run_context.hpp b/src/catch2/internal/catch_run_context.hpp index da320fe8..9626e448 100644 --- a/src/catch2/internal/catch_run_context.hpp +++ b/src/catch2/internal/catch_run_context.hpp @@ -108,7 +108,7 @@ namespace Catch { bool lastAssertionPassed() override; - void assertionPassed() override; + void assertionPassed(); public: // !TBD We need to do this another way! |