From e82a70a5f7a9afb1d1e6c9f44df37bb84ac078f0 Mon Sep 17 00:00:00 2001 From: "mconnor%myrealbox.com" Date: Wed, 5 May 2004 23:43:23 +0000 Subject: [PATCH] Bug 235915, RemovePage method is no longer part of nsIBrowserHistory interface, patch by bsmedsberg, r=mconnor --- toolkit/components/history/public/nsIBrowserHistory.idl | 5 +++++ toolkit/components/history/src/nsGlobalHistory.cpp | 2 +- toolkit/components/history/src/nsGlobalHistory.h | 1 - 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/toolkit/components/history/public/nsIBrowserHistory.idl b/toolkit/components/history/public/nsIBrowserHistory.idl index 61283390f8a6..569f74315781 100644 --- a/toolkit/components/history/public/nsIBrowserHistory.idl +++ b/toolkit/components/history/public/nsIBrowserHistory.idl @@ -64,6 +64,11 @@ interface nsIBrowserHistory : nsIGlobalHistory2 */ readonly attribute PRUint32 count; + /** + * remove a page from history + */ + void removePage(in string aURI); + /** * removePagesFromHost * Remove all pages from the given host. diff --git a/toolkit/components/history/src/nsGlobalHistory.cpp b/toolkit/components/history/src/nsGlobalHistory.cpp index b340c166958e..bf601a91bbda 100644 --- a/toolkit/components/history/src/nsGlobalHistory.cpp +++ b/toolkit/components/history/src/nsGlobalHistory.cpp @@ -1090,7 +1090,7 @@ nsGlobalHistory::SetPageTitle(nsIURI *aURI, const nsAString& aTitle) } -nsresult +NS_IMETHODIMP nsGlobalHistory::RemovePage(const char *aURL) { mdb_err err; diff --git a/toolkit/components/history/src/nsGlobalHistory.h b/toolkit/components/history/src/nsGlobalHistory.h index 14d27cf5f1c7..0406b2acf2dd 100644 --- a/toolkit/components/history/src/nsGlobalHistory.h +++ b/toolkit/components/history/src/nsGlobalHistory.h @@ -178,7 +178,6 @@ protected: // // expiration/removal stuff // - nsresult RemovePage(const char *aURL); PRInt32 mExpireDays; nsresult ExpireEntries(PRBool notify); nsresult RemoveMatchingRows(rowMatchCallback aMatchFunc,