Remove unreachable branch in QuicUtils::IsConnectionIdLengthValidForVersion. PiperOrigin-RevId: 480772812
diff --git a/quiche/quic/core/quic_utils.cc b/quiche/quic/core/quic_utils.cc index fdfce7e..5a5d6b0 100644 --- a/quiche/quic/core/quic_utils.cc +++ b/quiche/quic/core/quic_utils.cc
@@ -538,14 +538,6 @@ if (!VersionAllowsVariableLengthConnectionIds(transport_version)) { return connection_id_length8 == kQuicDefaultConnectionIdLength; } - // Versions that do support variable length but do not have length-prefixed - // connection IDs use the 4-bit connection ID length encoding which can - // only encode values 0 and 4-18. - if (!VersionHasLengthPrefixedConnectionIds(transport_version)) { - return connection_id_length8 == 0 || - (connection_id_length8 >= 4 && - connection_id_length8 <= kQuicMaxConnectionId4BitLength); - } return connection_id_length8 <= kQuicMaxConnectionIdWithLengthPrefixLength; }