diff --git a/editor/libeditor/html/nsHTMLEditor.cpp b/editor/libeditor/html/nsHTMLEditor.cpp index 52fe4682ad06..5d5edb73559b 100644 --- a/editor/libeditor/html/nsHTMLEditor.cpp +++ b/editor/libeditor/html/nsHTMLEditor.cpp @@ -2795,8 +2795,6 @@ NODE_FOUND: parent->GetNodeName(parentTagName); // Note: Originally used IsRoot to stop at table cells, // but that's too messy when you are trying to find the parent table - //bool isRoot; - //if (NS_FAILED(IsRootTag(parentTagName, isRoot)) || isRoot) if(parentTagName.LowerCaseEqualsLiteral("body")) break; @@ -4196,28 +4194,6 @@ nsHTMLEditor::SetCaretInTableCell(nsIDOMElement* aElement) return caretIsSet; } - - -NS_IMETHODIMP -nsHTMLEditor::IsRootTag(nsString &aTag, bool &aIsTag) -{ - static char bodyTag[] = "body"; - static char tdTag[] = "td"; - static char thTag[] = "th"; - static char captionTag[] = "caption"; - if (aTag.EqualsIgnoreCase(bodyTag) || - aTag.EqualsIgnoreCase(tdTag) || - aTag.EqualsIgnoreCase(thTag) || - aTag.EqualsIgnoreCase(captionTag) ) - { - aIsTag = true; - } - else { - aIsTag = false; - } - return NS_OK; -} - /////////////////////////////////////////////////////////////////////////// // GetEnclosingTable: find ancestor who is a table, if any // diff --git a/editor/libeditor/html/nsHTMLEditor.h b/editor/libeditor/html/nsHTMLEditor.h index 2fc00cffaf5f..f818204d4037 100644 --- a/editor/libeditor/html/nsHTMLEditor.h +++ b/editor/libeditor/html/nsHTMLEditor.h @@ -513,8 +513,6 @@ protected: // End of Table Editing utilities - NS_IMETHOD IsRootTag(nsString &aTag, bool &aIsTag); - virtual bool IsBlockNode(nsIDOMNode *aNode); virtual bool IsBlockNode(nsINode *aNode);