Skip to content

Commit

Permalink
stb_rect_pack: Remove unused rect_width_compare().
Browse files Browse the repository at this point in the history
  • Loading branch information
rygorous committed Jul 23, 2017
1 parent c59cb96 commit 5ebeb38
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions stb_rect_pack.h
Original file line number Diff line number Diff line change
Expand Up @@ -524,17 +524,6 @@ static int rect_height_compare(const void *a, const void *b)
return (p->w > q->w) ? -1 : (p->w < q->w);
}

static int rect_width_compare(const void *a, const void *b)
{
const stbrp_rect *p = (const stbrp_rect *) a;
const stbrp_rect *q = (const stbrp_rect *) b;
if (p->w > q->w)
return -1;
if (p->w < q->w)
return 1;
return (p->h > q->h) ? -1 : (p->h < q->h);
}

static int rect_original_order(const void *a, const void *b)
{
const stbrp_rect *p = (const stbrp_rect *) a;
Expand Down

0 comments on commit 5ebeb38

Please sign in to comment.