diff --git a/toolkit/components/places/nsIBrowserHistory.idl b/toolkit/components/places/nsIBrowserHistory.idl index ffc9839f0ad8..63f6092e3ff6 100644 --- a/toolkit/components/places/nsIBrowserHistory.idl +++ b/toolkit/components/places/nsIBrowserHistory.idl @@ -149,18 +149,6 @@ interface nsIBrowserHistory : nsIGlobalHistory2 */ void removeAllPages(); - /** - * Hides the specified URL from being enumerated (and thus displayed in - * the UI). - * - * @param aURI - * URI of the page to be marked. - * - * @note If the page hasn't been visited yet, then it will be added - * as if it was visited, and then marked as hidden - */ - void hidePage(in nsIURI aURI); - /** * Designates the url as having been explicitly typed in by the user. * diff --git a/toolkit/components/places/nsNavHistory.cpp b/toolkit/components/places/nsNavHistory.cpp index 0dc05a63d35a..206acc479e7d 100644 --- a/toolkit/components/places/nsNavHistory.cpp +++ b/toolkit/components/places/nsNavHistory.cpp @@ -3214,21 +3214,6 @@ nsNavHistory::RemoveAllPages() } -// nsNavHistory::HidePage -// -// Sets the 'hidden' column to true. If we've not heard of the page, we -// succeed and do nothing. - -NS_IMETHODIMP -nsNavHistory::HidePage(nsIURI *aURI) -{ - NS_ASSERTION(NS_IsMainThread(), "This can only be called on the main thread"); - NS_ENSURE_ARG(aURI); - - return NS_ERROR_NOT_IMPLEMENTED; -} - - // Call this method before visiting a URL in order to help determine the // transition type of the visit. // Later, in AddVisitChain() the next visit to this page will be associated to diff --git a/toolkit/components/places/tests/queries/head_queries.js b/toolkit/components/places/tests/queries/head_queries.js index 575679bf6a96..72870426fbbd 100644 --- a/toolkit/components/places/tests/queries/head_queries.js +++ b/toolkit/components/places/tests/queries/head_queries.js @@ -139,10 +139,6 @@ function populateDB(aArray) { PlacesUtils.bhistory.markPageAsTyped(uri(qdata.uri)); } - if (qdata.hidePage){ - PlacesUtils.bhistory.hidePage(uri(qdata.uri)); - } - if (qdata.isPageAnnotation) { if (qdata.removeAnnotation) PlacesUtils.annotations.removePageAnnotation(uri(qdata.uri), @@ -276,7 +272,6 @@ function queryData(obj) { this.isDetails = obj.isDetails ? obj.isDetails : false; this.title = obj.title ? obj.title : ""; this.markPageAsTyped = obj.markPageAsTyped ? obj.markPageAsTyped : false; - this.hidePage = obj.hidePage ? obj.hidePage : false; this.isPageAnnotation = obj.isPageAnnotation ? obj.isPageAnnotation : false; this.removeAnnotation= obj.removeAnnotation ? true : false; this.annoName = obj.annoName ? obj.annoName : "";