diff --git a/suite/browser/public/nsIBookmarksService.idl b/suite/browser/public/nsIBookmarksService.idl index b1e1b0db64a..e3582f01d88 100644 --- a/suite/browser/public/nsIBookmarksService.idl +++ b/suite/browser/public/nsIBookmarksService.idl @@ -80,15 +80,6 @@ interface nsIBookmarksService : nsISupports wstring getLastCharset(in string aURI); void importSystemBookmarks(in nsIRDFResource aParentFolder); - - /** - * Get the time when a bookmark was added - * - * @param aBookmarkURL The url of the bookmark - * @param aAddTime The time when aBookmarkURL was added to the bookmarks. - * - */ - void getAddTime(in string aBookmarkURL, out long long aAddTime); }; %{C++ diff --git a/suite/browser/src/nsBookmarksService.cpp b/suite/browser/src/nsBookmarksService.cpp index 8b8750c8724..e2b03e1e1ac 100644 --- a/suite/browser/src/nsBookmarksService.cpp +++ b/suite/browser/src/nsBookmarksService.cpp @@ -3030,37 +3030,6 @@ nsBookmarksService::RemoveBookmarkIcon(const char *aURL, const PRUnichar *iconUR } -NS_IMETHODIMP -nsBookmarksService::GetAddTime(const char *aBookmarkURL, PRInt64* aAddTime) -{ - nsCOMPtr bookmark; - nsresult rv; - - if (NS_SUCCEEDED(rv = gRDF->GetResource(aBookmarkURL, getter_AddRefs(bookmark) ))) - { - // Note: always use mInner!! Otherwise, could get into an infinite loop - // due to Assert/Change calling UpdateBookmarkLastModifiedDate() - - nsCOMPtr nodeType; - GetSynthesizedType(bookmark, getter_AddRefs(nodeType)); - if (nodeType == kNC_Bookmark) - { - nsCOMPtr node; - rv = mInner->GetTarget(bookmark, kNC_BookmarkAddDate, PR_TRUE, - getter_AddRefs(node)); - if (rv != NS_RDF_NO_VALUE) - { - nsCOMPtr addDate = do_QueryInterface(node); - if (addDate) - { - rv = addDate->GetValue(aAddTime); - } - } - } - } - return rv; -} - NS_IMETHODIMP nsBookmarksService::UpdateLastVisitedDate(const char *aURL, const PRUnichar *aCharset) {