Get rid of NetscapePluginModule::createPluginMIMETypesPreferences
authorandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 12 Feb 2016 17:24:13 +0000 (17:24 +0000)
committerandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 12 Feb 2016 17:24:13 +0000 (17:24 +0000)
https://bugs.webkit.org/show_bug.cgi?id=154173

Reviewed by Dan Bernstein.

* Shared/Plugins/Netscape/NetscapePluginModule.h:
* Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm:
(WebKit::NetscapePluginModule::createPluginMIMETypesPreferences): Deleted.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@196480 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit2/ChangeLog
Source/WebKit2/Shared/Plugins/Netscape/NetscapePluginModule.h
Source/WebKit2/Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm

index 0f283f2..09e5ec4 100644 (file)
@@ -1,3 +1,14 @@
+2016-02-12  Anders Carlsson  <andersca@apple.com>
+
+        Get rid of NetscapePluginModule::createPluginMIMETypesPreferences
+        https://bugs.webkit.org/show_bug.cgi?id=154173
+
+        Reviewed by Dan Bernstein.
+
+        * Shared/Plugins/Netscape/NetscapePluginModule.h:
+        * Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm:
+        (WebKit::NetscapePluginModule::createPluginMIMETypesPreferences): Deleted.
+
 2016-02-11  Anders Carlsson  <andersca@apple.com>
 
         Remove legacy processes from WebKit2
index 5bdd4a0..f19f941 100644 (file)
@@ -65,10 +65,6 @@ public:
 
     Module* module() const { return m_module.get(); }
 
-#if PLUGIN_ARCHITECTURE(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED <= 101000
-    static bool createPluginMIMETypesPreferences(const String& pluginPath);
-#endif
-
 #if PLUGIN_ARCHITECTURE(X11)
     static bool scanPlugin(const String& pluginPath);
     static void parseMIMEDescription(const String& mimeDescription, Vector<WebCore::MimeClassInfo>& result);
index 305f85a..975b42b 100644 (file)
@@ -276,27 +276,6 @@ bool NetscapePluginModule::getPluginInfo(const String& pluginPath, PluginModuleI
     return true;
 }
 
-#if __MAC_OS_X_VERSION_MIN_REQUIRED <= 101000
-bool NetscapePluginModule::createPluginMIMETypesPreferences(const String& pluginPath)
-{
-    RetainPtr<CFURLRef> bundleURL = adoptCF(CFURLCreateWithFileSystemPath(kCFAllocatorDefault, pluginPath.createCFString().get(), kCFURLPOSIXPathStyle, false));
-    
-    RetainPtr<CFBundleRef> bundle = adoptCF(CFBundleCreate(kCFAllocatorDefault, bundleURL.get()));
-    if (!bundle)
-        return false;
-
-    if (!CFBundleLoadExecutable(bundle.get()))
-        return false;
-
-    void (*createPluginMIMETypesPreferences)(void) = reinterpret_cast<void (*)(void)>(CFBundleGetFunctionPointerForName(bundle.get(), CFSTR("BP_CreatePluginMIMETypesPreferences")));
-    if (!createPluginMIMETypesPreferences)
-        return false;
-
-    createPluginMIMETypesPreferences();
-    return true;
-}
-#endif
-
 // FIXME: This doesn't need to be platform-specific.
 class PluginVersion {
 public: