we don't have panes in 5.0, remove some of this HAVE_PANES cruft.

This commit is contained in:
sspitzer%netscape.com 2000-01-13 09:31:20 +00:00
Родитель 1e1d22cfe9
Коммит 7b6d2cca05
1 изменённых файлов: 2 добавлений и 20 удалений

Просмотреть файл

@ -42,10 +42,6 @@
static NS_DEFINE_CID(kAppShellServiceCID, NS_APPSHELL_SERVICE_CID); static NS_DEFINE_CID(kAppShellServiceCID, NS_APPSHELL_SERVICE_CID);
#ifdef HAVE_PANES
class MSG_Master;
#endif
#include "nsXPIDLString.h" #include "nsXPIDLString.h"
#include "nsIMsgAccountManager.h" #include "nsIMsgAccountManager.h"
#include "nsIMsgIncomingServer.h" #include "nsIMsgIncomingServer.h"
@ -76,10 +72,6 @@ class MSG_Master;
#include "nsIDBFolderInfo.h" #include "nsIDBFolderInfo.h"
#ifdef HAVE_PANES
#include "msgpane.h"
#endif
#include "nsNewsUtils.h" #include "nsNewsUtils.h"
#include "nsMsgDBCID.h" #include "nsMsgDBCID.h"
@ -854,11 +846,8 @@ nsNNTPNewsgroupList::ProcessXOVERLINE(const char *line, PRUint32 *status)
PRInt32 totIndex = m_lastMsgNumber - m_firstMsgNumber + 1; PRInt32 totIndex = m_lastMsgNumber - m_firstMsgNumber + 1;
PRInt32 percent = (totIndex) ? (PRInt32)(100.0 * (double)numDownloaded / (double)totToDownload) : 0; PRInt32 percent = (totIndex) ? (PRInt32)(100.0 * (double)numDownloaded / (double)totToDownload) : 0;
#ifdef HAVE_PANES
FE_SetProgressBarPercent (m_pane->GetContext(), percent);
#else
SetProgressBarPercent(percent); SetProgressBarPercent(percent);
#endif
/* only update every NEWS_ART_DISPLAY_FREQ articles for speed */ /* only update every NEWS_ART_DISPLAY_FREQ articles for speed */
if ( (totIndex <= NEWS_ART_DISPLAY_FREQ) || ((lastIndex % NEWS_ART_DISPLAY_FREQ) == 0) || (lastIndex == totIndex)) if ( (totIndex <= NEWS_ART_DISPLAY_FREQ) || ((lastIndex % NEWS_ART_DISPLAY_FREQ) == 0) || (lastIndex == totIndex))
@ -869,11 +858,8 @@ nsNNTPNewsgroupList::ProcessXOVERLINE(const char *line, PRUint32 *status)
#else #else
char *statusString = PR_smprintf ("Received %d of %d headers", numDownloaded, totToDownload); char *statusString = PR_smprintf ("Received %d of %d headers", numDownloaded, totToDownload);
#endif #endif
#ifdef HAVE_PANES
FE_Progress (m_pane->GetContext(), statusString);
#else
SetProgressStatus(statusString); SetProgressStatus(statusString);
#endif
PR_FREEIF(statusString); PR_FREEIF(statusString);
} }
} }
@ -985,11 +971,7 @@ nsNNTPNewsgroupList::FinishXOVERLINE(int status, int *newstatus)
#endif #endif
if (statusString) if (statusString)
{ {
#ifdef HAVE_PANES
FE_Progress (context, statusString);
#else
SetProgressStatus(statusString); SetProgressStatus(statusString);
#endif
PR_FREEIF(statusString); PR_FREEIF(statusString);
} }
} }