Skip to content

Commit

Permalink
Cleanuf debug ifdef
Browse files Browse the repository at this point in the history
  • Loading branch information
huitema committed Dec 22, 2023
1 parent d97c4f5 commit 67ec005
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 32 deletions.
24 changes: 0 additions & 24 deletions picoquic/logger.c
Original file line number Diff line number Diff line change
Expand Up @@ -440,11 +440,6 @@ char const* textlog_tp_name(picoquic_tp_enum tp_number)
case picoquic_tp_test_large_chello:
tp_name = "large_chello";
break;
#if 0
case picoquic_tp_enable_loss_bit_old:
tp_name = "enable_loss_bit(old)";
break;
#endif
case picoquic_tp_enable_loss_bit:
tp_name = "enable_loss_bit";
break;
Expand Down Expand Up @@ -655,14 +650,6 @@ size_t textlog_ack_frame(FILE* F, uint64_t cnx_id64, uint64_t frame_id, const u

/* Now that the size is good, print it */
fprintf(F, " %s (nb=%u)", textlog_frame_names(frame_id), (int)num_block);
#if 0
if (is_ecn) {
fprintf(F, " ACK_ECN (nb=%u)", (int)num_block);
}
else {
fprintf(F, " ACK (nb=%u)", (int)num_block);
}
#endif

if (has_path_id) {
fprintf(F, ", path=%" PRIu64, path_id);
Expand Down Expand Up @@ -933,22 +920,11 @@ size_t textlog_generic_close_frame(FILE* F, const uint8_t* bytes, size_t bytes_m
return byte_index;
}

#if 1
#define textlog_connection_close_frame(F, bytes_val, bytes_max, cnx_id64) \
textlog_generic_close_frame(F, bytes_val, bytes_max, picoquic_frame_type_connection_close, cnx_id64)
#define textlog_application_close_frame(F, bytes_val, bytes_max, cnx_id64) \
textlog_generic_close_frame(F, bytes_val, bytes_max, picoquic_frame_type_application_close, cnx_id64)
#else
size_t textlog_connection_close_frame(FILE* F, const uint8_t* bytes, size_t bytes_max, uint64_t cnx_id64)
{
return textlog_generic_close_frame(F, bytes, bytes_max, picoquic_frame_type_connection_close, cnx_id64);
}

size_t textlog_application_close_frame(FILE* F, const uint8_t* bytes, size_t bytes_max, uint64_t cnx_id64)
{
return textlog_generic_close_frame(F, bytes, bytes_max, picoquic_frame_type_application_close, cnx_id64);
}
#endif
size_t textlog_max_data_frame(FILE* F, const uint8_t* bytes, size_t bytes_max)
{
size_t byte_index = 1;
Expand Down
3 changes: 0 additions & 3 deletions picoquic/picoquic_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -585,9 +585,6 @@ typedef uint64_t picoquic_tp_enum;
#define picoquic_tp_retry_connection_id 16
#define picoquic_tp_max_datagram_frame_size 32 /* per draft-pauly-quic-datagram-05 */
#define picoquic_tp_test_large_chello 3127
#if 0
#define picoquic_tp_enable_loss_bit_old 0x1055
#endif
#define picoquic_tp_enable_loss_bit 0x1057
#define picoquic_tp_min_ack_delay 0xff04de1aull
#define picoquic_tp_enable_time_stamp 0x7158 /* x&1 */
Expand Down
5 changes: 0 additions & 5 deletions picoquic/transport.c
Original file line number Diff line number Diff line change
Expand Up @@ -795,11 +795,6 @@ int picoquic_receive_transport_extensions(picoquic_cnx_t* cnx, int extension_mod
cnx->remote_parameters.max_datagram_frame_size = (uint32_t)
picoquic_transport_param_varint_decode(cnx, bytes + byte_index, extension_length, &ret);
break;
#if 0
case picoquic_tp_enable_loss_bit_old:
/* The old loss bit definition is obsolete */
break;
#endif
case picoquic_tp_enable_loss_bit: {
uint64_t enabled = picoquic_transport_param_varint_decode(cnx, bytes + byte_index, extension_length, &ret);
if (ret == 0) {
Expand Down

0 comments on commit 67ec005

Please sign in to comment.