This is an automated email from the ASF dual-hosted git repository.
jpeach pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new 6411b2603e Remove unneeded DEBUG conditionals. (#9849)
6411b2603e is described below
commit 6411b2603e82411bdf820934177d6349e7a00ca4
Author: James Peach <[email protected]>
AuthorDate: Fri Jun 16 08:18:53 2023 +1000
Remove unneeded DEBUG conditionals. (#9849)
---
iocore/eventsystem/I_Action.h | 14 +-------------
1 file changed, 1 insertion(+), 13 deletions(-)
diff --git a/iocore/eventsystem/I_Action.h b/iocore/eventsystem/I_Action.h
index 643f9a017f..de193ae19b 100644
--- a/iocore/eventsystem/I_Action.h
+++ b/iocore/eventsystem/I_Action.h
@@ -123,7 +123,7 @@ public:
machine.
*/
- int cancelled = false;
+ bool cancelled = false;
/**
Cancels the asynchronous operation represented by this action.
@@ -141,14 +141,8 @@ public:
cancel(Continuation *c = nullptr)
{
ink_assert(!c || c == continuation);
-#ifdef DEBUG
ink_assert(!cancelled);
cancelled = true;
-#else
- if (!cancelled) {
- cancelled = true;
- }
-#endif
}
/**
@@ -166,14 +160,8 @@ public:
cancel_action(Continuation *c = nullptr)
{
ink_assert(!c || c == continuation);
-#ifdef DEBUG
ink_assert(!cancelled);
cancelled = true;
-#else
- if (!cancelled) {
- cancelled = true;
- }
-#endif
}
Continuation *