From a6998fbdfaf84aa1920564d97e3421ed28c9a893 Mon Sep 17 00:00:00 2001 From: Bjørn Date: Sun, 12 Apr 2009 18:04:33 +0200 Subject: Cleaned up the ItemPopup class a bit Removed methods updateColors, getItemName and getNumRows. The last one was also removed from some other classes. --- src/gui/speechbubble.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/gui/speechbubble.cpp') diff --git a/src/gui/speechbubble.cpp b/src/gui/speechbubble.cpp index b7977d09..da472449 100644 --- a/src/gui/speechbubble.cpp +++ b/src/gui/speechbubble.cpp @@ -68,7 +68,7 @@ void SpeechBubble::setCaption(const std::string &name, const gcn::Color *color) mCaption->setForegroundColor(*color); } -void SpeechBubble::setText(std::string text, bool showName) +void SpeechBubble::setText(const std::string &text, bool showName) { if (text == mText && (mCaption->getWidth() <= mSpeechBox->getMinWidth())) return; @@ -98,8 +98,3 @@ void SpeechBubble::setText(std::string text, bool showName) mCaption->setPosition(xPos, getPadding()); mSpeechArea->setDimension(gcn::Rectangle(xPos, yPos, width, height)); } - -unsigned int SpeechBubble::getNumRows() const -{ - return mSpeechBox->getNumberOfRows(); -} -- cgit v1.2.3-70-g09d2