[sbix] Remove redundant parameter

This commit is contained in:
Behdad Esfahbod 2018-10-28 15:12:05 -07:00
parent c712005f55
commit a91cda72ab
1 changed files with 2 additions and 2 deletions

View File

@ -82,12 +82,12 @@ struct SBIXStrike
inline hb_blob_t *get_glyph_blob (unsigned int glyph_id, inline hb_blob_t *get_glyph_blob (unsigned int glyph_id,
hb_blob_t *sbix_blob, hb_blob_t *sbix_blob,
unsigned int sbix_len,
int *x_offset, int *x_offset,
int *y_offset, int *y_offset,
hb_tag_t file_type, hb_tag_t file_type,
unsigned int num_glyphs) const unsigned int num_glyphs) const
{ {
unsigned int sbix_len = sbix_blob->length;
unsigned int strike_offset = (const char *) this - (const char *) sbix_blob->data; unsigned int strike_offset = (const char *) this - (const char *) sbix_blob->data;
if (imageOffsetsZ[glyph_id + 1] - imageOffsetsZ[glyph_id] == 0) if (imageOffsetsZ[glyph_id + 1] - imageOffsetsZ[glyph_id] == 0)
return hb_blob_get_empty (); return hb_blob_get_empty ();
@ -185,7 +185,7 @@ struct sbix
int *x_offset, int *x_offset,
int *y_offset) const int *y_offset) const
{ {
return get_strike (font).get_glyph_blob (glyph_id, sbix_blob, sbix_len, return get_strike (font).get_glyph_blob (glyph_id, sbix_blob,
x_offset, y_offset, x_offset, y_offset,
HB_TAG ('p','n','g',' '), HB_TAG ('p','n','g',' '),
num_glyphs); num_glyphs);