Skip to content

Commit 1d169f1

Browse files
committed
TS-5009 CID 1022011 Logically dead code removal
1 parent cdd7957 commit 1d169f1

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

iocore/eventsystem/P_IOBuffer.h

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,6 @@ IOBufferReader::consume(int64_t n)
684684

685685
TS_INLINE char &IOBufferReader::operator[](int64_t i)
686686
{
687-
static char _error = '\0';
688687
IOBufferBlock *b = block.get();
689688

690689
i += start_offset;
@@ -696,12 +695,7 @@ TS_INLINE char &IOBufferReader::operator[](int64_t i)
696695
b = b->next.get();
697696
}
698697

699-
ink_assert(!"out of range");
700-
if (unlikely(b)) {
701-
return *b->start();
702-
}
703-
704-
return _error;
698+
ink_release_assert(!"out of range");
705699
}
706700

707701
TS_INLINE void

0 commit comments

Comments
 (0)