Remove unused code

This commit is contained in:
Behdad Esfahbod 2012-06-08 11:48:29 -04:00
parent 6da9dbff21
commit 82e8bd8628
1 changed files with 1 additions and 3 deletions

View File

@ -60,11 +60,9 @@ DWORD GetFontData(
static bool static bool
populate_log_font (LOGFONTW *lf, populate_log_font (LOGFONTW *lf,
HDC hdc,
hb_font_t *font) hb_font_t *font)
{ {
memset (lf, 0, sizeof (*lf)); memset (lf, 0, sizeof (*lf));
int dpi = GetDeviceCaps (hdc, LOGPIXELSY);
lf->lfHeight = -font->y_scale; lf->lfHeight = -font->y_scale;
hb_blob_t *blob = Sanitizer<name>::sanitize (hb_face_reference_table (font->face, HB_TAG ('n','a','m','e'))); hb_blob_t *blob = Sanitizer<name>::sanitize (hb_face_reference_table (font->face, HB_TAG ('n','a','m','e')));
@ -178,7 +176,7 @@ _hb_uniscribe_font_get_data (hb_font_t *font)
data->hdc = GetDC (NULL); data->hdc = GetDC (NULL);
if (unlikely (!populate_log_font (&data->log_font, data->hdc, font))) if (unlikely (!populate_log_font (&data->log_font, font)))
DEBUG_MSG (UNISCRIBE, font, "Font populate_log_font() failed"); DEBUG_MSG (UNISCRIBE, font, "Font populate_log_font() failed");
else { else {
data->hfont = CreateFontIndirectW (&data->log_font); data->hfont = CreateFontIndirectW (&data->log_font);