Bug 1438433 - Remove the network.predictor.redirect-likely-confidence pref. r=hurley.
It's unused.
MozReview-Commit-ID: DmHwJ3oW3Vq
--- a/modules/libpref/init/all.js
+++ b/modules/libpref/init/all.js
@@ -2175,17 +2175,16 @@ pref("network.predictor.subresource-degr
pref("network.predictor.subresource-degradation.week", 10);
pref("network.predictor.subresource-degradation.month", 25);
pref("network.predictor.subresource-degradation.year", 50);
pref("network.predictor.subresource-degradation.max", 100);
pref("network.predictor.prefetch-rolling-load-count", 10);
pref("network.predictor.prefetch-min-confidence", 100);
pref("network.predictor.preconnect-min-confidence", 90);
pref("network.predictor.preresolve-min-confidence", 60);
-pref("network.predictor.redirect-likely-confidence", 75);
pref("network.predictor.prefetch-force-valid-for", 10);
pref("network.predictor.max-resources-per-entry", 100);
pref("network.predictor.max-uri-length", 500);
pref("network.predictor.cleaned-up", false);
// The following prefs pertain to the negotiate-auth extension (see bug 17578),
// which provides transparent Kerberos or NTLM authentication using the SPNEGO
// protocol. Each pref is a comma-separated list of keys, where each key has
--- a/netwerk/base/Predictor.cpp
+++ b/netwerk/base/Predictor.cpp
@@ -116,19 +116,16 @@ static const char PREDICTOR_PREFETCH_MIN
"network.predictor.prefetch-min-confidence";
static const int32_t PREFETCH_MIN_DEFAULT = 100;
static const char PREDICTOR_PRECONNECT_MIN_PREF[] =
"network.predictor.preconnect-min-confidence";
static const int32_t PRECONNECT_MIN_DEFAULT = 90;
static const char PREDICTOR_PRERESOLVE_MIN_PREF[] =
"network.predictor.preresolve-min-confidence";
static const int32_t PRERESOLVE_MIN_DEFAULT = 60;
-static const char PREDICTOR_REDIRECT_LIKELY_PREF[] =
- "network.predictor.redirect-likely-confidence";
-static const int32_t REDIRECT_LIKELY_DEFAULT = 75;
static const char PREDICTOR_PREFETCH_FORCE_VALID_PREF[] =
"network.predictor.prefetch-force-valid-for";
static const int32_t PREFETCH_FORCE_VALID_DEFAULT = 10;
static const char PREDICTOR_MAX_RESOURCES_PREF[] =
"network.predictor.max-resources-per-entry";
static const uint32_t PREDICTOR_MAX_RESOURCES_DEFAULT = 100;
@@ -344,17 +341,16 @@ Predictor::Predictor()
,mSubresourceDegradationWeek(PREDICTOR_SUB_DELTA_WEEK_DEFAULT)
,mSubresourceDegradationMonth(PREDICTOR_SUB_DELTA_MONTH_DEFAULT)
,mSubresourceDegradationYear(PREDICTOR_SUB_DELTA_YEAR_DEFAULT)
,mSubresourceDegradationMax(PREDICTOR_SUB_DELTA_MAX_DEFAULT)
,mPrefetchRollingLoadCount(PREFETCH_ROLLING_LOAD_DEFAULT)
,mPrefetchMinConfidence(PREFETCH_MIN_DEFAULT)
,mPreconnectMinConfidence(PRECONNECT_MIN_DEFAULT)
,mPreresolveMinConfidence(PRERESOLVE_MIN_DEFAULT)
- ,mRedirectLikelyConfidence(REDIRECT_LIKELY_DEFAULT)
,mPrefetchForceValidFor(PREFETCH_FORCE_VALID_DEFAULT)
,mMaxResourcesPerEntry(PREDICTOR_MAX_RESOURCES_DEFAULT)
,mStartupCount(1)
,mMaxURILength(PREDICTOR_MAX_URI_LENGTH_DEFAULT)
,mDoingTests(false)
{
MOZ_ASSERT(!sSelf, "multiple Predictor instances!");
sSelf = this;
@@ -428,19 +424,16 @@ Predictor::InstallObserver()
PREDICTOR_PREFETCH_MIN_PREF,
PREFETCH_MIN_DEFAULT);
Preferences::AddIntVarCache(&mPreconnectMinConfidence,
PREDICTOR_PRECONNECT_MIN_PREF,
PRECONNECT_MIN_DEFAULT);
Preferences::AddIntVarCache(&mPreresolveMinConfidence,
PREDICTOR_PRERESOLVE_MIN_PREF,
PRERESOLVE_MIN_DEFAULT);
- Preferences::AddIntVarCache(&mRedirectLikelyConfidence,
- PREDICTOR_REDIRECT_LIKELY_PREF,
- REDIRECT_LIKELY_DEFAULT);
Preferences::AddIntVarCache(&mPrefetchForceValidFor,
PREDICTOR_PREFETCH_FORCE_VALID_PREF,
PREFETCH_FORCE_VALID_DEFAULT);
Preferences::AddIntVarCache(&mMaxResourcesPerEntry,
PREDICTOR_MAX_RESOURCES_PREF,
PREDICTOR_MAX_RESOURCES_DEFAULT);
--- a/netwerk/base/Predictor.h
+++ b/netwerk/base/Predictor.h
@@ -465,17 +465,16 @@ private:
int32_t mSubresourceDegradationMonth;
int32_t mSubresourceDegradationYear;
int32_t mSubresourceDegradationMax;
int32_t mPrefetchRollingLoadCount;
int32_t mPrefetchMinConfidence;
int32_t mPreconnectMinConfidence;
int32_t mPreresolveMinConfidence;
- int32_t mRedirectLikelyConfidence;
int32_t mPrefetchForceValidFor;
int32_t mMaxResourcesPerEntry;
bool mCleanedUp;
nsCOMPtr<nsITimer> mCleanupTimer;