Index: Source/core/page/DOMSelection.cpp |
diff --git a/Source/core/page/DOMSelection.cpp b/Source/core/page/DOMSelection.cpp |
index 4de89dec388d4775afe4ebb1b7154ae10f02f697..c86db641c3afa5106776c411e7aa20a799a88a62 100644 |
--- a/Source/core/page/DOMSelection.cpp |
+++ b/Source/core/page/DOMSelection.cpp |
@@ -272,22 +272,6 @@ void DOMSelection::setBaseAndExtent(Node* baseNode, int baseOffset, Node* extent |
m_frame->selection().moveTo(visibleBase, visibleExtent); |
} |
-void DOMSelection::setPosition(Node* node, int offset, ExceptionState& exceptionState) |
-{ |
- if (!m_frame) |
- return; |
- if (offset < 0) { |
- exceptionState.throwDOMException(IndexSizeError, String::number(offset) + " is not a valid offset."); |
- return; |
- } |
- |
- if (!isValidForPosition(node)) |
- return; |
- |
- // FIXME: Eliminate legacy editing positions |
- m_frame->selection().moveTo(VisiblePosition(createLegacyEditingPosition(node, offset), DOWNSTREAM)); |
-} |
- |
void DOMSelection::modify(const String& alterString, const String& directionString, const String& granularityString) |
{ |
if (!m_frame) |