From 82e8bd8628aeb37835fb019a71b6bdac87824b97 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 8 Jun 2012 11:48:29 -0400 Subject: [PATCH] Remove unused code --- src/hb-uniscribe.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/hb-uniscribe.cc b/src/hb-uniscribe.cc index 485e084..42721ec 100644 --- a/src/hb-uniscribe.cc +++ b/src/hb-uniscribe.cc @@ -60,11 +60,9 @@ DWORD GetFontData( static bool populate_log_font (LOGFONTW *lf, - HDC hdc, hb_font_t *font) { memset (lf, 0, sizeof (*lf)); - int dpi = GetDeviceCaps (hdc, LOGPIXELSY); lf->lfHeight = -font->y_scale; hb_blob_t *blob = Sanitizer::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); - 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"); else { data->hfont = CreateFontIndirectW (&data->log_font); -- 2.7.4