X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b1d1dc510df81a53b23f351b89c6d8624a0da5e3..a9249b2eb2a40d8c71f828669045c4ddaa8dc5ff:/src/gtk1/font.cpp?ds=sidebyside diff --git a/src/gtk1/font.cpp b/src/gtk1/font.cpp index c8a4c8da16..15909254a4 100644 --- a/src/gtk1/font.cpp +++ b/src/gtk1/font.cpp @@ -146,37 +146,6 @@ wxFontRefData::~wxFontRefData() } } -// ---------------------------------------------------------------------------- -// wxNativeFontInfo -// ---------------------------------------------------------------------------- - -bool wxNativeFontInfo::FromString(const wxString& s) -{ - wxStringTokenizer tokenizer(s, _T(";")); - - wxString token = tokenizer.GetNextToken(); - // - // Ignore the version for now - // - - xFontName = tokenizer.GetNextToken(); - if(!xFontName) - return FALSE; - - return TRUE; -} - -wxString wxNativeFontInfo::ToString() const -{ - wxString s; - - s.Printf(_T("%d;%s"), - 0, // version - xFontName.c_str()); - - return s; -} - // ---------------------------------------------------------------------------- // wxFont // ---------------------------------------------------------------------------- @@ -185,8 +154,6 @@ IMPLEMENT_DYNAMIC_CLASS(wxFont, wxGDIObject) void wxFont::Init() { - if (wxTheFontList) - wxTheFontList->Append( this ); } wxFont::wxFont(const wxNativeFontInfo& info) @@ -334,8 +301,6 @@ void wxFont::Unshare() wxFont::~wxFont() { - if (wxTheFontList) - wxTheFontList->DeleteObject( this ); } // ----------------------------------------------------------------------------