* removed unused function

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21682 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus
2007-07-22 13:34:54 +00:00
parent 6fbf283fb5
commit 7223defe3f
2 changed files with 0 additions and 25 deletions
-19
View File
@@ -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
-6
View File
@@ -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(); }