Commit 8286aac4 authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

We never use m_spaces, so kill it

parent 917482f0
......@@ -1096,8 +1096,6 @@ void TextPagePrivate::removeSpace()
{
if((*it)->text() == str)
{
// create new Entity, otherwise there might be possible memory leakage
m_spaces.append( new TinyTextEntity( (*it)->text(),(*it)->area ) );
delete *it;
it = m_words.erase(it);
}
......
......@@ -108,7 +108,6 @@ class TextPagePrivate
// variables those can be accessed directly from TextPage
QMap<int, RegionText> m_word_chars_map;
RegionTextList m_XY_cut_tree;
TextList m_spaces;
TextList m_words;
QMap< int, SearchPoint* > m_searchPoints;
PagePrivate *m_page;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment