From 7223defe3f4c62ec933846d7c720b16434093c7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Sun, 22 Jul 2007 13:34:54 +0000 Subject: [PATCH] * removed unused function git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21682 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/app/Decorator.cpp | 19 ------------------- src/servers/app/Decorator.h | 6 ------ 2 files changed, 25 deletions(-) diff --git a/src/servers/app/Decorator.cpp b/src/servers/app/Decorator.cpp index d4db393884..6562b1230a 100644 --- a/src/servers/app/Decorator.cpp +++ b/src/servers/app/Decorator.cpp @@ -496,25 +496,6 @@ Decorator::UIColor(color_which which) \param width Maximum number of pixels the title can be \return the number of characters that will fit in the given width */ -int32 -Decorator::_ClipTitle(float width) -{ - // TODO: eventually, use ServerFont::TruncateString() - // when it exists (if it doesn't already) - if (fDrawingEngine) { - int32 strlength = fTitle.CountChars(); - float pixwidth=fDrawingEngine->StringWidth(fTitle.String(),strlength,&fDrawState); - - while (strlength >= 0) { - if (pixwidth < width) - return strlength; - - strlength--; - pixwidth=fDrawingEngine->StringWidth(fTitle.String(), strlength, &fDrawState); - } - } - return 0; -} //! Function for calculating layout for the decorator void diff --git a/src/servers/app/Decorator.h b/src/servers/app/Decorator.h index 1252342f5c..df40361dd9 100644 --- a/src/servers/app/Decorator.h +++ b/src/servers/app/Decorator.h @@ -119,12 +119,6 @@ class Decorator { RGBColor UIColor(color_which which); protected: - int32 _ClipTitle(float width); - - /*! - \brief Returns the number of characters in the title - \return The title character count - */ int32 _TitleWidth() const { return fTitle.CountChars(); }