diff --git a/toolkit/components/places/src/nsBookmarksFeedHandler.cpp b/toolkit/components/places/src/nsBookmarksFeedHandler.cpp index b2cbd79a06d..b9d3077fe1b 100644 --- a/toolkit/components/places/src/nsBookmarksFeedHandler.cpp +++ b/toolkit/components/places/src/nsBookmarksFeedHandler.cpp @@ -581,7 +581,6 @@ nsLivemarkLoadListener::TryParseAsSimpleRSS () // Go through the / and do what we need // with or nodes - int numMarksAdded = 0; rv = chElement->GetFirstChild(getter_AddRefs(node)); if (!node) return NS_ERROR_UNEXPECTED; @@ -680,8 +679,6 @@ nsLivemarkLoadListener::TryParseAsSimpleRSS () linkURI, nsDependentString(titleStr)); if (NS_FAILED(rv)) return rv; - - numMarksAdded++; } } } @@ -692,14 +689,6 @@ nsLivemarkLoadListener::TryParseAsSimpleRSS () node = temp; } - - if (numMarksAdded > 0) { - // if no items were found, return NS_ERROR_FAILURE so that - // the RDF parser can be tried. - return NS_ERROR_FAILURE; - } - - // return NS_OK if items were found so that the RDF parser isn't tried. return NS_OK; } @@ -803,4 +792,4 @@ nsLivemarkService::UpdateLivemarkChildren(PRInt32 aLivemarkIndex) } return NS_OK; -} \ No newline at end of file +}