mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
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:
parent
9b0cd72e73
commit
4fa04d6a28
@ -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;
|
||||
|
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user