Bug 751608 - Remove the never implemented nsIBrowserHistory::hidePage method.

r=mak sr=gavin
This commit is contained in:
Marco Castelluccio 2012-05-05 14:25:31 +02:00
Родитель 2d21971c58
Коммит cfd0aeda1e
3 изменённых файлов: 0 добавлений и 32 удалений

Просмотреть файл

@ -149,18 +149,6 @@ interface nsIBrowserHistory : nsIGlobalHistory2
*/ */
void removeAllPages(); 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. * Designates the url as having been explicitly typed in by the user.
* *

Просмотреть файл

@ -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 // Call this method before visiting a URL in order to help determine the
// transition type of the visit. // transition type of the visit.
// Later, in AddVisitChain() the next visit to this page will be associated to // Later, in AddVisitChain() the next visit to this page will be associated to

Просмотреть файл

@ -139,10 +139,6 @@ function populateDB(aArray) {
PlacesUtils.bhistory.markPageAsTyped(uri(qdata.uri)); PlacesUtils.bhistory.markPageAsTyped(uri(qdata.uri));
} }
if (qdata.hidePage){
PlacesUtils.bhistory.hidePage(uri(qdata.uri));
}
if (qdata.isPageAnnotation) { if (qdata.isPageAnnotation) {
if (qdata.removeAnnotation) if (qdata.removeAnnotation)
PlacesUtils.annotations.removePageAnnotation(uri(qdata.uri), PlacesUtils.annotations.removePageAnnotation(uri(qdata.uri),
@ -276,7 +272,6 @@ function queryData(obj) {
this.isDetails = obj.isDetails ? obj.isDetails : false; this.isDetails = obj.isDetails ? obj.isDetails : false;
this.title = obj.title ? obj.title : ""; this.title = obj.title ? obj.title : "";
this.markPageAsTyped = obj.markPageAsTyped ? obj.markPageAsTyped : false; this.markPageAsTyped = obj.markPageAsTyped ? obj.markPageAsTyped : false;
this.hidePage = obj.hidePage ? obj.hidePage : false;
this.isPageAnnotation = obj.isPageAnnotation ? obj.isPageAnnotation : false; this.isPageAnnotation = obj.isPageAnnotation ? obj.isPageAnnotation : false;
this.removeAnnotation= obj.removeAnnotation ? true : false; this.removeAnnotation= obj.removeAnnotation ? true : false;
this.annoName = obj.annoName ? obj.annoName : ""; this.annoName = obj.annoName ? obj.annoName : "";