From c78c0787bd592b9b299a49563e93913a0c7b225f Mon Sep 17 00:00:00 2001 From: haydentech Date: Tue, 30 Dec 2003 22:50:52 +0000 Subject: [PATCH] gcc 3 fix (no default args in implementation) and dead code removal git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5839 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/interface/Font.cpp | 37 +------------------------------------ 1 file changed, 1 insertion(+), 36 deletions(-) diff --git a/src/kits/interface/Font.cpp b/src/kits/interface/Font.cpp index 358458ecef..1efbd1c136 100644 --- a/src/kits/interface/Font.cpp +++ b/src/kits/interface/Font.cpp @@ -74,7 +74,7 @@ int32 count_font_styles(font_family name) \param flags iF non-NULL, the values of the flags IS_FIXED and B_HAS_TUNED_FONT are returned \return B_ERROR if the index does not correspond to a font family */ -status_t get_font_family(int32 index, font_family *name, uint32 *flags=NULL) +status_t get_font_family(int32 index, font_family *name, uint32 *flags) { // Fix over R5, which does not check for NULL font family names - it just crashes if(!name) @@ -153,41 +153,6 @@ status_t set_font_cache_info(uint32 id, void *set) // is a completely different font engine. } -/* -class BFontPrivate -{ -public: - BFontPrivate(void); - BFontPrivate &operator=(const BFontPrivate &fontdata); - - BRect fBox; - font_family fFamily; - font_style fStyle; - bool fFixed; - font_file_format fFormat; - font_direction fDirection; - int32 fPrivateFlags; -}; - -BFontPrivate::BFontPrivate(void) -{ - fBox=BRect(0,0,0,0); - fFixed=false; - fFormat=B_TRUETYPE_WINDOWS; - fDirection=B_FONT_LEFT_TO_RIGHT; -} - -BFontPrivate & BFontPrivate::operator=(const BFontPrivate &fontdata) -{ - fBox=fontdata.fBox; - *fFamily=*(fontdata.fFamily); - *fStyle=*(fontdata.fStyle); - fFixed=fontdata.fFixed; - fFormat=fontdata.fFormat; - fDirection=fontdata.fDirection; - return *this; -} -*/ //---------------------------------------------------------------------------------------- // BFont Class Definition