Commit 4f5ba7d7 authored by Daniel Teske's avatar Daniel Teske
Browse files

Remove unused method ITextMarkable::hasMark()



Change-Id: Ia1676cadce7cd4124523453fa9142676b425a6c5
Reviewed-by: default avatarEike Ziller <eike.ziller@nokia.com>
parent cc04261e
......@@ -74,7 +74,6 @@ public:
bool addMark(ITextMark *mark, int line);
TextMarks marksAt(int line) const;
void removeMark(ITextMark *mark);
bool hasMark(ITextMark *mark) const;
void updateMark(ITextMark *mark);
private:
......@@ -156,19 +155,6 @@ void DocumentMarker::removeMark(TextEditor::ITextMark *mark)
}
}
bool DocumentMarker::hasMark(TextEditor::ITextMark *mark) const
{
QTextBlock block = document->begin();
while (block.isValid()) {
if (TextBlockUserData *data = static_cast<TextBlockUserData *>(block.userData())) {
if (data->hasMark(mark))
return true;
}
block = block.next();
}
return false;
}
void DocumentMarker::updateMark(ITextMark *mark)
{
Q_UNUSED(mark)
......
......@@ -81,7 +81,7 @@ public:
inline TextMarks marks() const { return m_marks; }
void addMark(ITextMark *mark);
inline bool removeMark(ITextMark *mark) { return m_marks.removeAll(mark); }
inline bool hasMark(ITextMark *mark) const { return m_marks.contains(mark); }
inline void clearMarks() { m_marks.clear(); }
inline void documentClosing() { Q_FOREACH(ITextMark *tm, m_marks) { tm->documentClosing(); } m_marks.clear();}
......
......@@ -97,7 +97,6 @@ public:
virtual bool addMark(ITextMark *mark, int line) = 0;
virtual TextMarks marksAt(int line) const = 0;
virtual void removeMark(ITextMark *mark) = 0;
virtual bool hasMark(ITextMark *mark) const = 0;
virtual void updateMark(ITextMark *mark) = 0;
};
......
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