diff --git a/docshell/base/nsDocShell.cpp b/docshell/base/nsDocShell.cpp index ad92fa14fff8..f19328ef65bb 100644 --- a/docshell/base/nsDocShell.cpp +++ b/docshell/base/nsDocShell.cpp @@ -2708,25 +2708,6 @@ nsDocShell::GetInProcessSameTypeParent(nsIDocShellTreeItem** aParent) { return NS_OK; } -NS_IMETHODIMP -nsDocShell::GetSameTypeInProcessParentIgnoreBrowserBoundaries( - nsIDocShell** aParent) { - NS_ENSURE_ARG_POINTER(aParent); - *aParent = nullptr; - - nsCOMPtr parent = - do_QueryInterface(GetAsSupports(mParent)); - if (!parent) { - return NS_OK; - } - - if (parent->ItemType() == mItemType) { - nsCOMPtr parentDS = do_QueryInterface(parent); - parentDS.forget(aParent); - } - return NS_OK; -} - NS_IMETHODIMP nsDocShell::GetInProcessRootTreeItem(nsIDocShellTreeItem** aRootTreeItem) { NS_ENSURE_ARG_POINTER(aRootTreeItem); diff --git a/docshell/base/nsIDocShell.idl b/docshell/base/nsIDocShell.idl index d2316b46682b..0b7fac567219 100644 --- a/docshell/base/nsIDocShell.idl +++ b/docshell/base/nsIDocShell.idl @@ -539,14 +539,6 @@ interface nsIDocShell : nsIDocShellTreeItem */ [infallible] readonly attribute boolean isTopLevelContentDocShell; - /** - * Like nsIDocShellTreeItem::GetSameTypeParent, except this ignores