diff options
author | Khaled Hosny <khaledhosny@eglug.org> | 2016-11-11 11:33:37 +0200 |
---|---|---|
committer | Khaled Hosny <khaledhosny@eglug.org> | 2016-11-11 14:06:13 +0200 |
commit | b9ed8e553eb8515051dbdcabfe4aa0227f0d3023 (patch) | |
tree | 5c12912a364499cf28bb097afbd5fc31b41f55ad /vcl/win/gdi | |
parent | 49f65d5114a5e7df0274e9453a79dd1bd18491ad (diff) |
Unused code
Change-Id: Ie2e4b5881a783441d32010408c05b3c9f1e5641c
Diffstat (limited to 'vcl/win/gdi')
-rw-r--r-- | vcl/win/gdi/winlayout.cxx | 18 |
1 files changed, 0 insertions, 18 deletions
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 |