forked from qt-creator/qt-creator
Remove unused method ITextMarkable::hasMark()
Change-Id: Ia1676cadce7cd4124523453fa9142676b425a6c5 Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user