Index: third_party/WebKit/Source/core/editing/markers/DocumentMarkerListEditor.cpp |
diff --git a/third_party/WebKit/Source/core/editing/markers/DocumentMarkerListEditor.cpp b/third_party/WebKit/Source/core/editing/markers/DocumentMarkerListEditor.cpp |
index 821a303acbeecba7d1f0de93142d809966ca23eb..d92853402b463a3638cd71f20b4da0276699e2c6 100644 |
--- a/third_party/WebKit/Source/core/editing/markers/DocumentMarkerListEditor.cpp |
+++ b/third_party/WebKit/Source/core/editing/markers/DocumentMarkerListEditor.cpp |
@@ -83,25 +83,6 @@ bool DocumentMarkerListEditor::RemoveMarkers(MarkerList* list, |
return doc_dirty; |
} |
-// TODO(rlanday): move to SpellCheckMarkerListImpl.cpp |
-bool SpellCheckMarkerListImpl::RemoveMarkersUnderWords( |
- const String& node_text, |
- const Vector<String>& words) { |
- bool removed_markers = false; |
- for (size_t j = markers_.size(); j > 0; --j) { |
- const DocumentMarker& marker = *markers_[j - 1]; |
- const unsigned start = marker.StartOffset(); |
- const unsigned length = marker.EndOffset() - marker.StartOffset(); |
- const String& marker_text = node_text.Substring(start, length); |
- if (words.Contains(marker_text)) { |
- markers_.erase(j - 1); |
- removed_markers = true; |
- } |
- } |
- |
- return removed_markers; |
-} |
- |
bool DocumentMarkerListEditor::ShiftMarkers(MarkerList* list, |
unsigned offset, |
unsigned old_length, |