Remove unnecessary wxFontRefData dtor in wxOSX too

Smart pointers will clean up the resources automatically, there is no
need to call Free() manually from the dtor.
This commit is contained in:
Vadim Zeitlin
2018-09-12 23:41:37 +02:00
parent d9b62e0832
commit de7ab2a45f

View File

@@ -47,8 +47,6 @@ public:
wxFontRefData(CTFontRef font);
virtual ~wxFontRefData();
float GetFractionalPointSize() const { return m_info.GetFractionalPointSize(); }
wxFontFamily GetFamily() const { return m_info.GetFamily(); }
@@ -271,11 +269,6 @@ wxFontRefData::wxFontRefData(const wxFontInfo& info)
SetEncoding(info.GetEncoding());
}
wxFontRefData::~wxFontRefData()
{
Free();
}
void wxFontRefData::Free()
{
m_ctFont.reset();