diff options
author | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2015-12-28 13:28:34 +0100 |
---|---|---|
committer | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2015-12-28 13:28:34 +0100 |
commit | 9df045f04190ed87d49a619821e6c16557a518cf (patch) | |
tree | 99a3c32b2ddd37d3c96434c59cf86d4d9e135b44 | |
parent | f81b6a04609f1164ea4a006af43c2e9ce6dbf242 (diff) |
Remove unnecessary code. This works the same without it.
Change-Id: I971775f35c8a4fc2d1955dd79e84f8486df9629e
-rw-r--r-- | src/lib/VSDContentCollector.cpp | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/lib/VSDContentCollector.cpp b/src/lib/VSDContentCollector.cpp index 899c837..f24673c 100644 --- a/src/lib/VSDContentCollector.cpp +++ b/src/lib/VSDContentCollector.cpp @@ -432,36 +432,6 @@ void libvisio::VSDContentCollector::_flushText() m_tabSets.back().m_numChars = 0; } - unsigned numCharsInText = (unsigned)m_currentText.len(); - - for (unsigned iChar = 0; iChar < m_charFormats.size(); iChar++) - { - if (m_charFormats[iChar].charCount) - numCharsInText -= m_charFormats[iChar].charCount; - else - m_charFormats[iChar].charCount = numCharsInText; - } - - numCharsInText = (unsigned)m_currentText.len(); - - for (unsigned iPara = 0; iPara < m_paraFormats.size(); iPara++) - { - if (m_paraFormats[iPara].charCount) - numCharsInText -= m_paraFormats[iPara].charCount; - else - m_paraFormats[iPara].charCount = numCharsInText; - } - - numCharsInText = (unsigned)m_currentText.len(); - - for (unsigned iTab = 0; iTab < m_tabSets.size(); iTab++) - { - if (m_tabSets[iTab].m_numChars) - numCharsInText -= m_tabSets[iTab].m_numChars; - else - m_tabSets[iTab].m_numChars = numCharsInText; - } - _appendVisibleAndPrintable(textBlockProps); m_shapeOutputText->addStartTextObject(textBlockProps); |