diff --git a/mozilla/toolkit/components/places/src/nsLivemarkService.cpp b/mozilla/toolkit/components/places/src/nsLivemarkService.cpp index 4b817e084ae..b1d7298189f 100644 --- a/mozilla/toolkit/components/places/src/nsLivemarkService.cpp +++ b/mozilla/toolkit/components/places/src/nsLivemarkService.cpp @@ -483,7 +483,9 @@ nsLivemarkService::DeleteLivemarkChildren(PRInt64 aLivemarkFolderId) NS_ENSURE_SUCCESS(rv, rv); PRUint32 cc; + root->SetContainerOpen(PR_TRUE); rv = root->GetChildCount(&cc); + NS_ENSURE_SUCCESS(rv, rv); for (PRUint32 i = 0; i < cc; i++) { nsCOMPtr node; rv = root->GetChild(i, getter_AddRefs(node)); @@ -504,22 +506,6 @@ nsLivemarkService::DeleteLivemarkChildren(PRInt64 aLivemarkFolderId) return rv; } -nsresult -nsLivemarkService::BeginUpdateBatch() -{ - nsNavBookmarks *bookmarks = nsNavBookmarks::GetBookmarksService(); - NS_ENSURE_TRUE(bookmarks, NS_ERROR_OUT_OF_MEMORY); - return bookmarks->BeginUpdateBatch(); -} - -nsresult -nsLivemarkService::EndUpdateBatch() -{ - nsNavBookmarks *bookmarks = nsNavBookmarks::GetBookmarksService(); - NS_ENSURE_TRUE(bookmarks, NS_ERROR_OUT_OF_MEMORY); - return bookmarks->EndUpdateBatch(); -} - nsresult nsLivemarkService::InsertLivemarkChild(PRInt64 aLivemarkFolderId, nsIURI *aURI,