gfe-relnote: Deprecate gfe2_restart_flag_quic_uint64max_uninitialized_pn.
PiperOrigin-RevId: 239406856
Change-Id: If9019c232ee3a37cf5bbdf4e0cae996346d7ba77
diff --git a/quic/core/quic_packet_number.h b/quic/core/quic_packet_number.h
index a6559d9..5348abd 100644
--- a/quic/core/quic_packet_number.h
+++ b/quic/core/quic_packet_number.h
@@ -126,11 +126,7 @@
inline QuicPacketNumber operator+(QuicPacketNumber lhs, uint64_t delta) {
#ifndef NDEBUG
DCHECK(lhs.IsInitialized());
- if (GetQuicRestartFlag(quic_uint64max_uninitialized_pn)) {
- DCHECK_GT(std::numeric_limits<uint64_t>::max() - lhs.ToUint64(), delta);
- } else {
- DCHECK_GE(std::numeric_limits<uint64_t>::max() - lhs.ToUint64(), delta);
- }
+ DCHECK_GT(std::numeric_limits<uint64_t>::max() - lhs.ToUint64(), delta);
#endif
return QuicPacketNumber(lhs.packet_number_ + delta);
}
@@ -138,11 +134,7 @@
inline QuicPacketNumber operator-(QuicPacketNumber lhs, uint64_t delta) {
#ifndef NDEBUG
DCHECK(lhs.IsInitialized());
- if (GetQuicRestartFlag(quic_uint64max_uninitialized_pn)) {
- DCHECK_GE(lhs.ToUint64(), delta);
- } else {
- DCHECK_GT(lhs.ToUint64(), delta);
- }
+ DCHECK_GE(lhs.ToUint64(), delta);
#endif
return QuicPacketNumber(lhs.packet_number_ - delta);
}