Index: third_party/WebKit/Source/core/editing/VisibleSelection.cpp |
diff --git a/third_party/WebKit/Source/core/editing/VisibleSelection.cpp b/third_party/WebKit/Source/core/editing/VisibleSelection.cpp |
index 7f07e42cdd127920c4dc9336024c32ecdbb05d92..71e4b6a7d4412fa5df768a36ebeeb4f98adc3213 100644 |
--- a/third_party/WebKit/Source/core/editing/VisibleSelection.cpp |
+++ b/third_party/WebKit/Source/core/editing/VisibleSelection.cpp |
@@ -72,17 +72,6 @@ VisibleSelection createVisibleSelection(const SelectionInDOMTree& selection) { |
return VisibleSelection::create(selection); |
} |
-VisibleSelection createVisibleSelection(const Position& pos, |
- TextAffinity affinity, |
- bool isDirectional) { |
- DCHECK(!needsLayoutTreeUpdate(pos)); |
- SelectionInDOMTree::Builder builder; |
- builder.setAffinity(affinity).setIsDirectional(isDirectional); |
- if (pos.isNotNull()) |
- builder.collapse(pos); |
- return createVisibleSelection(builder.build()); |
-} |
- |
VisibleSelection createVisibleSelection(const Position& base, |
const Position& extent, |
TextAffinity affinity, |