diff options
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/macgui/mactext.cpp | 15 | ||||
-rw-r--r-- | graphics/macgui/mactext.h | 1 |
2 files changed, 0 insertions, 16 deletions
diff --git a/graphics/macgui/mactext.cpp b/graphics/macgui/mactext.cpp index 75d41e08ea..d7fcb5cfab 100644 --- a/graphics/macgui/mactext.cpp +++ b/graphics/macgui/mactext.cpp @@ -364,17 +364,6 @@ uint getNewlinesInString(const Common::String &str) { return newLines; } -// Appends numNewLines new lines in _textLines, formatted with the MacFontRun specified -void MacText::resizeAndFormatLines(uint numNewLines, MacFontRun *fontRun) { - uint oldLen = _textLines.size(); - - // Resize _textLines appropriately - for (uint curLine = 0; curLine < numNewLines; ++curLine) { - _textLines.resize(oldLen + numNewLines); - _textLines[oldLen + curLine].chunks.push_back(*fontRun); - } -} - void MacText::appendText(Common::String str, int fontId = kMacFontChicago, int fontSize = 12, int fontSlant = kMacFontRegular) { uint oldLen = _textLines.size(); uint newLines = 1 + getNewlinesInString(str); @@ -386,8 +375,6 @@ void MacText::appendText(Common::String str, int fontId = kMacFontChicago, int f _str += fontRun.toString(); _str += str; - //resizeAndFormatLines(newLines, &fontRun); - splitString(str); recalcDims(); @@ -403,8 +390,6 @@ void MacText::appendTextDefault(Common::String str) { _str += _defaultFormatting.toString(); _str += str; - //resizeAndFormatLines(newLines, &_defaultFormatting); - splitString(str); recalcDims(); diff --git a/graphics/macgui/mactext.h b/graphics/macgui/mactext.h index 8e25dcfdd1..43804ffc41 100644 --- a/graphics/macgui/mactext.h +++ b/graphics/macgui/mactext.h @@ -101,7 +101,6 @@ public: } void draw(ManagedSurface *g, int x, int y, int w, int h, int xoff, int yoff); - void resizeAndFormatLines(uint numNewLines, MacFontRun * fontRun); void appendText(Common::String str, int fontId, int fontSize, int fontSlant); void appendTextDefault(Common::String str); void clearText(); |