]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/font.cpp
remove always-true test of unsigned >= 0
[wxWidgets.git] / src / gtk1 / font.cpp
index 176dde8d1579d553155c2b2fb88e02fd8412967e..93e30695a4b3cba444e1e713a8fa9817883a36a3 100644 (file)
@@ -23,7 +23,6 @@
 #ifndef WX_PRECOMP
     #include "wx/log.h"
     #include "wx/settings.h"
-    #include "wx/cmndata.h"
     #include "wx/gdicmn.h"
 #endif
 
@@ -450,8 +449,6 @@ void wxFontRefData::SetNativeFontInfo(const wxNativeFontInfo& info)
 // wxFont creation
 // ----------------------------------------------------------------------------
 
-IMPLEMENT_DYNAMIC_CLASS(wxFont, wxGDIObject)
-
 wxFont::wxFont(const wxNativeFontInfo& info)
 {
     (void) Create(info.GetXFontName());
@@ -534,10 +531,8 @@ wxString wxFont::GetFaceName() const
     return M_FONTDATA->m_faceName;
 }
 
-wxFontFamily wxFont::GetFamily() const
+wxFontFamily wxFont::DoGetFamily() const
 {
-    wxCHECK_MSG( Ok(), wxFONTFAMILY_MAX, wxT("invalid font") );
-
     return M_FONTDATA->m_family;
 }
 
@@ -668,7 +663,7 @@ void wxFont::DoSetNativeFontInfo( const wxNativeFontInfo& info )
 
 static GdkFont *g_systemDefaultGuiFont = NULL;
 
-// this is also used from tbargtk.cpp and tooltip.cpp, hence extern
+// this is also used from toolbar.cpp and tooltip.cpp, hence extern
 extern GdkFont *GtkGetDefaultGuiFont()
 {
     if (!g_systemDefaultGuiFont)