Skip to content

Commit

Permalink
Remove an unused function
Browse files Browse the repository at this point in the history
The function pqueue_print is not exported and is never called. Therefore
we should delete it.

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
  • Loading branch information
mattcaswell committed Apr 11, 2016
1 parent 2af22b7 commit f8c3f2b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
14 changes: 0 additions & 14 deletions ssl/pqueue.c
Original file line number Diff line number Diff line change
Expand Up @@ -171,20 +171,6 @@ pitem *pqueue_find(pqueue *pq, unsigned char *prio64be)
return found;
}

void pqueue_print(pqueue *pq)
{
pitem *item = pq->items;

while (item != NULL) {
printf("item\t%02x%02x%02x%02x%02x%02x%02x%02x\n",
item->priority[0], item->priority[1],
item->priority[2], item->priority[3],
item->priority[4], item->priority[5],
item->priority[6], item->priority[7]);
item = item->next;
}
}

pitem *pqueue_iterator(pqueue *pq)
{
return pqueue_peek(pq);
Expand Down
1 change: 0 additions & 1 deletion ssl/ssl_locl.h
Original file line number Diff line number Diff line change
Expand Up @@ -1464,7 +1464,6 @@ pitem *pqueue_pop(pqueue *pq);
pitem *pqueue_find(pqueue *pq, unsigned char *prio64be);
pitem *pqueue_iterator(pqueue *pq);
pitem *pqueue_next(piterator *iter);
void pqueue_print(pqueue *pq);
int pqueue_size(pqueue *pq);

typedef struct dtls1_state_st {
Expand Down

0 comments on commit f8c3f2b

Please sign in to comment.