Bug 1163909 - Remove nsFtpState::mSessionStartTime, which is dead. r=mcmanus.

This eliminates a static constructor.

--HG--
extra : rebase_source : b4510ca7820d9e285d89621061446a4044f68ec3
This commit is contained in:
Nicholas Nethercote 2015-05-12 00:28:31 -07:00
parent 5d3df65465
commit d66a8f5e94
2 changed files with 3 additions and 13 deletions

View File

@ -1603,14 +1603,6 @@ nsFtpState::R_opts() {
////////////////////////////////////////////////////////////////////////////////
// nsIRequest methods:
static inline
uint32_t GetFtpTime()
{
return uint32_t(PR_Now() / PR_USEC_PER_SEC);
}
uint32_t nsFtpState::mSessionStartTime = GetFtpTime();
nsresult
nsFtpState::Init(nsFtpChannel *channel)
{

View File

@ -3,8 +3,8 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef __nsFtpState__h_
#define __nsFtpState__h_
#ifndef __nsFtpConnectionThread__h_
#define __nsFtpConnectionThread__h_
#include "nsBaseContentStream.h"
@ -203,8 +203,6 @@ private:
bool mServerIsIPv6;
bool mUseUTF8;
static uint32_t mSessionStartTime;
mozilla::net::NetAddr mServerAddress;
// ***** control read gvars
@ -230,4 +228,4 @@ private:
}
};
#endif //__nsFtpState__h_
#endif //__nsFtpConnectionThread__h_