Permalink
Browse files

stb_rect_pack: Remove unused rect_width_compare().

Fixes #416.
  • Loading branch information...
rygorous committed Jul 23, 2017
1 parent c59cb96 commit 5ebeb38edb3a1aceff44c142ab9eac832d6c6943
Showing with 0 additions and 11 deletions.
  1. +0 −11 stb_rect_pack.h
View
@@ -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;

0 comments on commit 5ebeb38

Please sign in to comment.