mirror of
https://github.com/nghttp2/nghttp2.git
synced 2025-12-07 02:28:53 +08:00
Remove nghttp2_pq_increase_key
This commit is contained in:
@@ -180,8 +180,3 @@ int nghttp2_pq_each(nghttp2_pq *pq, nghttp2_pq_item_cb fun, void *arg) {
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
void nghttp2_pq_increase_key(nghttp2_pq *pq, nghttp2_pq_entry *item) {
|
||||
assert(pq->q[item->index] == item);
|
||||
bubble_down(pq, item->index);
|
||||
}
|
||||
|
||||
@@ -120,12 +120,6 @@ void nghttp2_pq_update(nghttp2_pq *pq, nghttp2_pq_item_cb fun, void *arg);
|
||||
*/
|
||||
int nghttp2_pq_each(nghttp2_pq *pq, nghttp2_pq_item_cb fun, void *arg);
|
||||
|
||||
/*
|
||||
* Performs "increase-key" operation against |item|, assuming |item|
|
||||
* is in |pq|, and its key is already updated.
|
||||
*/
|
||||
void nghttp2_pq_increase_key(nghttp2_pq *pq, nghttp2_pq_entry *item);
|
||||
|
||||
/*
|
||||
* Removes |item| from priority queue.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user