diff --git a/js/xpconnect/src/XPCShellImpl.cpp b/js/xpconnect/src/XPCShellImpl.cpp index a5c8969e778d..7d9f1e0754ae 100644 --- a/js/xpconnect/src/XPCShellImpl.cpp +++ b/js/xpconnect/src/XPCShellImpl.cpp @@ -14,7 +14,6 @@ #include "js/Printf.h" #include "js/PropertySpec.h" #include "js/SourceText.h" // JS::SourceText -#include "gfxPlatform.h" #include "mozilla/ChaosMode.h" #include "mozilla/dom/ScriptSettings.h" #include "mozilla/IOInterposer.h" @@ -1306,10 +1305,6 @@ int XRE_XPCShellMain(int argc, char** argv, char** envp, CodeCoverageHandler::Init(); #endif - // Ensure gfxPlatform is initialized to make sure CMS state some test want - // to use is set up. - gfxPlatform::GetPlatform(); - { if (!glob) { return 1; diff --git a/testing/gtest/mozilla/GTestRunner.cpp b/testing/gtest/mozilla/GTestRunner.cpp index f988f28a504b..836baf8ba0da 100644 --- a/testing/gtest/mozilla/GTestRunner.cpp +++ b/testing/gtest/mozilla/GTestRunner.cpp @@ -9,7 +9,6 @@ #include "nsICrashReporter.h" #include "testing/TestHarness.h" #include "prenv.h" -#include "gfxPlatform.h" #ifdef ANDROID # include #endif @@ -125,11 +124,6 @@ int RunGTestFunc(int* argc, char** argv) { char* path = PR_GetEnv("MOZ_GTEST_CWD"); chdir(path); #endif - - // Ensure gfxPlatform is initialized to make sure CMS state some test want - // to use is set up. - gfxPlatform::GetPlatform(); - nsCOMPtr crashreporter; char* crashreporterStr = PR_GetEnv("MOZ_CRASHREPORTER"); if (crashreporterStr && !strcmp(crashreporterStr, "1")) {