Bug 932904 - Eliminate mFirstNewDate completely. It was meant for NS version 4 compatibility, and was used uninitialized, and no longer necessary. r=jcranmer

This commit is contained in:
ISHIKAWA, Chiaki 2014-01-21 13:39:05 -05:00
Родитель 1a88dcd5cd
Коммит 4d1a9f1c51
2 изменённых файлов: 2 добавлений и 9 удалений

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

@ -794,7 +794,6 @@ nsNntpIncomingServer::WriteHostInfoFile()
{
if (!mHostInfoHasChanged)
return NS_OK;
int32_t firstnewdate = (int32_t)mFirstNewDate;
mLastUpdatedTime = uint32_t(PR_Now() / PR_USEC_PER_SEC);
@ -824,9 +823,6 @@ nsNntpIncomingServer::WriteHostInfoFile()
nsAutoCString dateStr("lastgroupdate=");
dateStr.AppendInt(mLastUpdatedTime);
WriteLine(hostInfoStream, dateStr);
dateStr ="firstnewdate=";
dateStr.AppendInt(firstnewdate);
WriteLine(hostInfoStream, dateStr);
dateStr = "uniqueid=";
dateStr.AppendInt(mUniqueId);
WriteLine(hostInfoStream, dateStr);
@ -1246,8 +1242,6 @@ nsNntpIncomingServer::HandleLine(const char* line, uint32_t line_size)
*equalPos++ = '\0';
if (PL_strcmp(line, "lastgroupdate") == 0) {
mLastUpdatedTime = strtoul(equalPos, nullptr, 10);
} else if (PL_strcmp(line, "firstnewdate") == 0) {
mFirstNewDate = strtol(equalPos, nullptr, 16);
} else if (PL_strcmp(line, "uniqueid") == 0) {
mUniqueId = strtol(equalPos, nullptr, 16);
} else if (PL_strcmp(line, "version") == 0) {

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

@ -121,10 +121,9 @@ private:
bool mHostInfoLoaded;
bool mHostInfoHasChanged;
nsCOMPtr <nsIFile> mHostInfoFile;
uint32_t mLastGroupDate;
PRTime mFirstNewDate;
int32_t mUniqueId;
int32_t mUniqueId;
uint32_t mLastUpdatedTime;
int32_t mVersion;
bool mPostingAllowed;