Remove useless wxFont::ActivatePrivateFonts()

Just "activate" the font immediately when adding it using
AddPrivateFont(), nothing seems to be gained from having two functions
and it just makes things more complicated both when implementing and
when using the API.
This commit is contained in:
Vadim Zeitlin
2017-11-13 22:09:15 +01:00
parent c9d1f9a719
commit 283f5a4d56
8 changed files with 53 additions and 92 deletions

View File

@@ -426,10 +426,6 @@ MyFrame::MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size)
{
wxLogWarning("Failed to add private font from \"%s\"", privfont);
}
else if ( !wxFont::ActivatePrivateFonts() )
{
wxLogWarning("Failed to activate the private fonts");
}
else
{
menuSelect->AppendSeparator();