aboutsummaryrefslogtreecommitdiff
path: root/graphics/macgui/mactext.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2017-08-02 11:21:42 +0200
committerEugene Sandulenko2017-08-04 21:54:19 +0200
commit61eb58186c64364f39688ceb7c6122192ef5c36b (patch)
treedba06b322283a8ff2b3a6dbf97d90f9a693d4744 /graphics/macgui/mactext.cpp
parenta95899c1b65c1558e4f23ab9cbdb315270a152c2 (diff)
downloadscummvm-rg350-61eb58186c64364f39688ceb7c6122192ef5c36b.tar.gz
scummvm-rg350-61eb58186c64364f39688ceb7c6122192ef5c36b.tar.bz2
scummvm-rg350-61eb58186c64364f39688ceb7c6122192ef5c36b.zip
GRAPHICS: MACGUI: Cleanup
Diffstat (limited to 'graphics/macgui/mactext.cpp')
-rw-r--r--graphics/macgui/mactext.cpp15
1 files changed, 0 insertions, 15 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();