Skip to content

Commit

Permalink
Merge pull request #1690 from private-octopus/fix-pacing-unused-static
Browse files Browse the repository at this point in the history
remove unused static function
  • Loading branch information
huitema authored May 10, 2024
2 parents 01dd305 + 56f65bb commit c306ab4
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions picoquic/pacing.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,6 @@ void picoquic_pacing_init(picoquic_pacing_t* pacing, uint64_t current_time)
pacing->packet_time_microsec = 1;
}

/* Compute nanosec per packet */
static uint64_t picoquic_pacing_time_nanosec(picoquic_pacing_t* pacing, size_t length)
{
const uint64_t nanosec_per_sec = 1000000000ull;
uint64_t packet_time_nanosec = 1;
if (pacing->rate > 0) {
packet_time_nanosec = (nanosec_per_sec * length + (pacing->rate - 1)) / pacing->rate;
}

return packet_time_nanosec;
}

/* Update the leaky bucket used for pacing.
*/
static void picoquic_update_pacing_bucket(picoquic_pacing_t* pacing, uint64_t current_time)
Expand Down

0 comments on commit c306ab4

Please sign in to comment.