Skip to content

Commit b653d00

Browse files
committed
TS-5009 CID 1022011 Logically dead code removal
1 parent bc84981 commit b653d00

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

iocore/eventsystem/P_IOBuffer.h

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -684,8 +684,7 @@ IOBufferReader::consume(int64_t n)
684684

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

690689
i += start_offset;
691690
while (b) {
@@ -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)