Bug 951555 - Clean up dead code from dom/workers/RuntimeService.cpp after removal of heuristic detection from the File API; r=bent

This commit is contained in:
Ehsan Akhgari 2013-12-18 22:54:26 -05:00
parent b2d26bcc16
commit 041fdf98a7
2 changed files with 0 additions and 24 deletions

View File

@ -1733,15 +1733,6 @@ RuntimeService::Init()
MAX_WORKERS_PER_DOMAIN);
gMaxWorkersPerDomain = std::max(0, maxPerDomain);
mDetectorName = Preferences::GetLocalizedCString("intl.charset.detector");
nsCOMPtr<nsIPlatformCharset> platformCharset =
do_GetService(NS_PLATFORMCHARSET_CONTRACTID, &rv);
if (NS_SUCCEEDED(rv)) {
rv = platformCharset->GetCharset(kPlatformCharsetSel_PlainTextInFile,
mSystemCharset);
}
rv = InitOSFileConstants();
if (NS_FAILED(rv)) {
return rv;

View File

@ -96,9 +96,6 @@ private:
// Only used on the main thread.
nsCOMPtr<nsITimer> mIdleThreadTimer;
nsCString mDetectorName;
nsCString mSystemCharset;
static JSSettings sDefaultJSSettings;
static bool sDefaultPreferences[WORKERPREF_COUNT];
@ -153,18 +150,6 @@ public:
void
ForgetSharedWorker(WorkerPrivate* aWorkerPrivate);
const nsACString&
GetDetectorName() const
{
return mDetectorName;
}
const nsACString&
GetSystemCharset() const
{
return mSystemCharset;
}
const NavigatorStrings&
GetNavigatorStrings() const
{