Index: third_party/WebKit/Source/core/editing/spellcheck/TextCheckingParagraph.cpp |
diff --git a/third_party/WebKit/Source/core/editing/spellcheck/TextCheckingParagraph.cpp b/third_party/WebKit/Source/core/editing/spellcheck/TextCheckingParagraph.cpp |
index 6f8f18d3d88c5fd7d0b911fe98728426c24e8f12..b9aeb06ced4a1f483c696b37e150354143c7a1be 100644 |
--- a/third_party/WebKit/Source/core/editing/spellcheck/TextCheckingParagraph.cpp |
+++ b/third_party/WebKit/Source/core/editing/spellcheck/TextCheckingParagraph.cpp |
@@ -99,11 +99,6 @@ EphemeralRange TextCheckingParagraph::Subrange(int character_offset, |
character_count); |
} |
-int TextCheckingParagraph::OffsetTo(const Position& position) const { |
- DCHECK(checking_range_.IsNotNull()); |
- return TextIterator::RangeLength(OffsetAsRange().StartPosition(), position); |
-} |
- |
bool TextCheckingParagraph::IsEmpty() const { |
// Both predicates should have same result, but we check both just to be sure. |
// We need to investigate to remove this redundancy. |