mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 20:05:49 +00:00
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:
parent
5d3df65465
commit
d66a8f5e94
@ -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)
|
||||
{
|
||||
|
@ -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_
|
||||
|
Loading…
Reference in New Issue
Block a user