diff --git a/editor/base/nsHTMLDataTransfer.cpp b/editor/base/nsHTMLDataTransfer.cpp index 2df83a19f677..888b31c696b3 100644 --- a/editor/base/nsHTMLDataTransfer.cpp +++ b/editor/base/nsHTMLDataTransfer.cpp @@ -1587,9 +1587,6 @@ nsresult nsHTMLEditor::CreateListOfNodesToPaste(nsIDOMNode *aFragmentAsNode, res = docFragRange->SetEnd(endParent, endOffset); NS_ENSURE_SUCCESS(res, res); - nsAutoString str; - docFragRange->ToString(str); - // now use a subtree iterator over the range to create a list of nodes nsTrivialFunctor functor; nsDOMSubtreeIterator iter; diff --git a/editor/libeditor/html/nsHTMLDataTransfer.cpp b/editor/libeditor/html/nsHTMLDataTransfer.cpp index 2df83a19f677..888b31c696b3 100644 --- a/editor/libeditor/html/nsHTMLDataTransfer.cpp +++ b/editor/libeditor/html/nsHTMLDataTransfer.cpp @@ -1587,9 +1587,6 @@ nsresult nsHTMLEditor::CreateListOfNodesToPaste(nsIDOMNode *aFragmentAsNode, res = docFragRange->SetEnd(endParent, endOffset); NS_ENSURE_SUCCESS(res, res); - nsAutoString str; - docFragRange->ToString(str); - // now use a subtree iterator over the range to create a list of nodes nsTrivialFunctor functor; nsDOMSubtreeIterator iter;