stb_rect_pack: Remove unused rect_width_compare().

Fixes #416.
master
Fabian Giesen ago%!(EXTRA string=8 years)
parent c59cb96874
commit 5ebeb38edb
  1. 11
      stb_rect_pack.h

@ -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;

Loading…
Cancel
Save