From b9ed8e553eb8515051dbdcabfe4aa0227f0d3023 Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Fri, 11 Nov 2016 11:33:37 +0200 Subject: Unused code Change-Id: Ie2e4b5881a783441d32010408c05b3c9f1e5641c --- vcl/win/gdi/winlayout.cxx | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'vcl/win/gdi') diff --git a/vcl/win/gdi/winlayout.cxx b/vcl/win/gdi/winlayout.cxx index 468bc1ccbc1a..b7882e337f85 100644 --- a/vcl/win/gdi/winlayout.cxx +++ b/vcl/win/gdi/winlayout.cxx @@ -3531,24 +3531,6 @@ bool D2DWriteTextOutRenderer::operator ()(SalLayout const &rLayout, HDC hDC, return (succeeded && nGlyphs >= 1 && pRectToErase); } -IDWriteFontFace* D2DWriteTextOutRenderer::GetDWriteFontFace(HDC hDC) const -{ - IDWriteFontFace* pFontFace; - bool succeeded = false; - try - { - succeeded = SUCCEEDED(mpGdiInterop->CreateFontFaceFromHdc(hDC, &pFontFace)); - } - catch (const std::exception& e) - { - SAL_WARN("vcl.gdi", "Error in dwrite while creating font face: " << e.what()); - return nullptr; - } - if(succeeded) - return pFontFace; - else return nullptr; -} - bool D2DWriteTextOutRenderer::BindFont(HDC hDC) { // A TextOutRender can only be bound to one font at a time, so the -- cgit