Bug 1135181: Remove unnecessary 'nsresult' return value from nsCSSRuleProcessor::Startup(), since it always succeeds. r=heycam

This commit is contained in:
Daniel Holbert 2015-02-20 22:31:09 -08:00
parent 5c310df1f7
commit 2624adf3e5
3 changed files with 3 additions and 9 deletions

View File

@ -242,11 +242,7 @@ nsLayoutStatics::Initialize()
return rv;
}
rv = nsCSSRuleProcessor::Startup();
if (NS_FAILED(rv)) {
NS_ERROR("Could not initialize nsCSSRuleProcessor");
return rv;
}
nsCSSRuleProcessor::Startup();
#ifdef MOZ_XUL
rv = nsXULPopupManager::Init();

View File

@ -1101,13 +1101,11 @@ nsCSSRuleProcessor::ClearSheets()
mSheets.Clear();
}
/* static */ nsresult
/* static */ void
nsCSSRuleProcessor::Startup()
{
Preferences::AddBoolVarCache(&gSupportVisitedPseudo, VISITED_PSEUDO_PREF,
true);
return NS_OK;
}
static bool

View File

@ -65,7 +65,7 @@ public:
public:
nsresult ClearRuleCascades();
static nsresult Startup();
static void Startup();
static void Shutdown();
static void FreeSystemMetrics();
static bool HasSystemMetric(nsIAtom* aMetric);