Skip to content

Commit 44b4eb8

Browse files
Remove unneed assertion and function
1 parent e17b195 commit 44b4eb8

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

Include/internal/pycore_backoff.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,6 @@ extern "C" {
3737
#define UNREACHABLE_BACKOFF 7
3838
#define MAX_VALUE 0x1FFF
3939

40-
static inline bool
41-
is_unreachable_backoff_counter(_Py_BackoffCounter counter)
42-
{
43-
return counter.value_and_backoff == UNREACHABLE_BACKOFF;
44-
}
45-
4640
static inline _Py_BackoffCounter
4741
make_backoff_counter(uint16_t value, uint16_t backoff)
4842
{
@@ -64,7 +58,6 @@ forge_backoff_counter(uint16_t counter)
6458
static inline _Py_BackoffCounter
6559
restart_backoff_counter(_Py_BackoffCounter counter)
6660
{
67-
assert(!is_unreachable_backoff_counter(counter));
6861
uint16_t backoff = counter.value_and_backoff & BACKOFF_MASK;
6962
assert(backoff <= MAX_BACKOFF);
7063
backoff = (backoff == MAX_BACKOFF) ? backoff : backoff + 1;

0 commit comments

Comments
 (0)