diff --git a/editor/libeditor/HTMLTableEditor.cpp b/editor/libeditor/HTMLTableEditor.cpp
index 2f813bfd5339..74be73c03319 100644
--- a/editor/libeditor/HTMLTableEditor.cpp
+++ b/editor/libeditor/HTMLTableEditor.cpp
@@ -277,23 +277,6 @@ HTMLEditor::GetFirstTableRowElement(Element& aTableOrElementInTable,
return nullptr;
}
-NS_IMETHODIMP
-HTMLEditor::GetNextRow(Element* aTableRowElement,
- Element** aNextTableRowElement)
-{
- if (NS_WARN_IF(!aTableRowElement) || NS_WARN_IF(!aNextTableRowElement)) {
- return NS_ERROR_INVALID_ARG;
- }
- ErrorResult error;
- RefPtr nextRowElement =
- GetNextTableRowElement(*aTableRowElement, error);
- if (NS_WARN_IF(error.Failed())) {
- return error.StealNSResult();
- }
- nextRowElement.forget(aNextTableRowElement);
- return NS_OK;
-}
-
Element*
HTMLEditor::GetNextTableRowElement(Element& aTableRowElement,
ErrorResult& aRv) const
diff --git a/editor/nsITableEditor.idl b/editor/nsITableEditor.idl
index c8f8139f4272..41370743f5e0 100644
--- a/editor/nsITableEditor.idl
+++ b/editor/nsITableEditor.idl
@@ -223,17 +223,6 @@ interface nsITableEditor : nsISupports
*/
Element getFirstRow(in Element aTableElement);
- /**
- * getNextRow() returns next element of given
element.
- *
- * @param aTableRowElement Must be a
element.
- * @return
element next to aTableRowElement if there
- * is. Note that this may be in different
- * table section element (e.g.,
).
- * However, never crosses boundary.
- */
- Element getNextRow(in Element aTableElement);
-
/** Preferred direction to search for neighboring cell
* when trying to locate a cell to place caret in after
* a table editing action.