From 007aa66aec593c433604aa95a5b0f5e6d2c71293 Mon Sep 17 00:00:00 2001 From: "sspitzer%netscape.com" Date: Fri, 5 May 2000 07:12:51 +0000 Subject: [PATCH] lower count, and remove printfs. --- mailnews/news/src/nsNNTPProtocol.cpp | 11 +---------- mailnews/news/src/nsNntpIncomingServer.cpp | 12 ------------ 2 files changed, 1 insertion(+), 22 deletions(-) diff --git a/mailnews/news/src/nsNNTPProtocol.cpp b/mailnews/news/src/nsNNTPProtocol.cpp index 261ce4b6e86..ea00257ea19 100644 --- a/mailnews/news/src/nsNNTPProtocol.cpp +++ b/mailnews/news/src/nsNNTPProtocol.cpp @@ -95,7 +95,7 @@ #define PREF_NEWS_CANCEL_CONFIRM "news.cancel.confirm" #define PREF_NEWS_CANCEL_ALERT_ON_SUCCESS "news.cancel.alert_on_success" #define DEFAULT_NEWS_CHUNK_SIZE -1 -#define READ_NEWS_LIST_COUNT_MAX 20 /* number of groups to process at a time when reading the list from the server */ +#define READ_NEWS_LIST_COUNT_MAX 4 /* number of groups to process at a time when reading the list from the server */ // ***jt -- the following were pirated from xpcom/io/nsByteBufferInputStream // which is not currently in the build system @@ -2932,9 +2932,6 @@ PRInt32 nsNNTPProtocol::ReadNewsList(nsIInputStream * inputStream, PRUint32 leng nsresult nsNNTPProtocol::PostReadNewsListEvent(nsNNTPProtocol * aNNTPProtocol, nsIInputStream *aInputStream, PLHandleEventProc aHandler) { -#ifdef DEBUG_sspitzer - printf("PostReadNewsListEvent()\n"); -#endif nsresult rv; nsCOMPtr svc = do_GetService(kEventQueueServiceCID, &rv); @@ -2979,9 +2976,6 @@ nsNNTPProtocol::PostReadNewsListEvent(nsNNTPProtocol * aNNTPProtocol, nsIInputSt void* nsNNTPProtocol::HandleReadNewsListEvent(PLEvent* aEvent) { -#ifdef DEBUG_sspitzer - printf("HandleReadNewsListEvent()\n"); -#endif ReadNewsListEvent* event = NS_REINTERPRET_CAST(ReadNewsListEvent*, aEvent); nsNNTPProtocol* aNNTPProtocol = event->mNNTPProtocol; @@ -2994,9 +2988,6 @@ nsNNTPProtocol::HandleReadNewsListEvent(PLEvent* aEvent) void nsNNTPProtocol::DestroyReadNewsListEvent(PLEvent* aEvent) { -#ifdef DEBUG_sspitzer - printf("DestroyReadNewsListEvent()\n"); -#endif ReadNewsListEvent* event = NS_REINTERPRET_CAST(ReadNewsListEvent*, aEvent); NS_RELEASE(event->mNNTPProtocol); NS_RELEASE(event->mInputStream); diff --git a/mailnews/news/src/nsNntpIncomingServer.cpp b/mailnews/news/src/nsNntpIncomingServer.cpp index 9c35e40e0b1..2c31a733544 100644 --- a/mailnews/news/src/nsNntpIncomingServer.cpp +++ b/mailnews/news/src/nsNntpIncomingServer.cpp @@ -519,9 +519,6 @@ nsNntpIncomingServer::SetNewsgroupAsSubscribed(const char *aName) NS_ASSERTION(aName,"newsgroup with no name"); if (!aName) return NS_ERROR_FAILURE; -#ifdef DEBUG_sspitzer - printf("SetNewsgroupAsSubscribed(%s)\n",aName); -#endif nsXPIDLCString serverUri; rv = GetServerURI(getter_Copies(serverUri)); @@ -604,9 +601,6 @@ nsNntpIncomingServer::AddNewNewsgroup(const char *aName) nsCOMPtr newsgroupResource; rv = rdfService->GetResource((const char *) groupUri, getter_AddRefs(newsgroupResource)); -#ifdef DEBUG_sspitzer - printf("child=%s\n",(const char *)groupUri); -#endif nsCOMPtr nameLiteral; nsAutoString nameString; nameString.AssignWithConversion(aName); @@ -647,16 +641,10 @@ nsNntpIncomingServer::AddNewNewsgroup(const char *aName) if (dotpos > slashpos) { groupUri.Truncate(dotpos); -#ifdef DEBUG_sspitzer - printf("parent=%s\n\n",(const char *)groupUri); -#endif rv = rdfService->GetResource((const char *)groupUri, getter_AddRefs(parent)); if(NS_FAILED(rv)) return rv; } else { -#ifdef DEBUG_sspitzer - printf("parent=%s\n\n",(const char *)serverUri); -#endif rv = rdfService->GetResource((const char *)serverUri, getter_AddRefs(parent)); if(NS_FAILED(rv)) return rv; }