summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-05-15 20:16:39 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-05-15 22:19:17 +0200
commit649593b5232beade06d279981c045c6388f9163a (patch)
tree47e28f91d18ca1646b2b05dd747fe76996307e1f /vcl
parent9ad875a5e4d60ab701a4e1e68b17482e7a6e8330 (diff)
ReleaseHbFont is unused
LogicalFontInstance dtor does call hb_font_destroy though Change-Id: I59d9711f1934966cddd73c5e62c8929f08b1359a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94335 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/inc/fontinstance.hxx9
1 files changed, 0 insertions, 9 deletions
diff --git a/vcl/inc/fontinstance.hxx b/vcl/inc/fontinstance.hxx
index 365ce74d1099..4aff50c9577e 100644
--- a/vcl/inc/fontinstance.hxx
+++ b/vcl/inc/fontinstance.hxx
@@ -90,7 +90,6 @@ protected:
// Takes ownership of pHbFace.
static hb_font_t* InitHbFont(hb_face_t* pHbFace);
virtual hb_font_t* ImplInitHbFont() { assert(false); return hb_font_get_empty(); }
- inline void ReleaseHbFont();
private:
// cache of Unicode characters and replacement font names
@@ -113,14 +112,6 @@ inline hb_font_t* LogicalFontInstance::GetHbFont()
return m_pHbFont;
}
-inline void LogicalFontInstance::ReleaseHbFont()
-{
- if (!m_pHbFont)
- return;
- hb_font_destroy(m_pHbFont);
- m_pHbFont = nullptr;
-}
-
inline void LogicalFontInstance::DecodeOpenTypeTag(const uint32_t nTableTag, char* pTagName)
{
pTagName[0] = static_cast<char>(nTableTag >> 24);