Title: [196493] trunk/Source/WebKit2
Revision
196493
Author
[email protected]
Date
2016-02-12 12:17:03 -0800 (Fri, 12 Feb 2016)

Log Message

Remove more unused process launcher code
https://bugs.webkit.org/show_bug.cgi?id=154181

Reviewed by Tim Horton.

* UIProcess/Launcher/ProcessLauncher.cpp:
(WebKit::ProcessLauncher::processTypeAsString): Deleted.
(WebKit::ProcessLauncher::getProcessTypeFromString): Deleted.
* UIProcess/Launcher/ProcessLauncher.h:

Modified Paths

Diff

Modified: trunk/Source/WebKit2/ChangeLog (196492 => 196493)


--- trunk/Source/WebKit2/ChangeLog	2016-02-12 20:15:30 UTC (rev 196492)
+++ trunk/Source/WebKit2/ChangeLog	2016-02-12 20:17:03 UTC (rev 196493)
@@ -1,5 +1,17 @@
 2016-02-12  Anders Carlsson  <[email protected]>
 
+        Remove more unused process launcher code
+        https://bugs.webkit.org/show_bug.cgi?id=154181
+
+        Reviewed by Tim Horton.
+
+        * UIProcess/Launcher/ProcessLauncher.cpp:
+        (WebKit::ProcessLauncher::processTypeAsString): Deleted.
+        (WebKit::ProcessLauncher::getProcessTypeFromString): Deleted.
+        * UIProcess/Launcher/ProcessLauncher.h:
+
+2016-02-12  Anders Carlsson  <[email protected]>
+
         Remove more unused process launching code
         https://bugs.webkit.org/show_bug.cgi?id=154178
 

Modified: trunk/Source/WebKit2/UIProcess/Launcher/ProcessLauncher.cpp (196492 => 196493)


--- trunk/Source/WebKit2/UIProcess/Launcher/ProcessLauncher.cpp	2016-02-12 20:15:30 UTC (rev 196492)
+++ trunk/Source/WebKit2/UIProcess/Launcher/ProcessLauncher.cpp	2016-02-12 20:17:03 UTC (rev 196493)
@@ -75,53 +75,4 @@
     platformInvalidate();
 }
 
-const char* ProcessLauncher::processTypeAsString(ProcessType processType)
-{
-    switch (processType) {
-    case WebProcess:
-        return "webprocess";
-#if ENABLE(NETSCAPE_PLUGIN_API)
-    case PluginProcess:
-        return "pluginprocess";
-#endif
-    case NetworkProcess:
-        return "networkprocess";
-#if ENABLE(DATABASE_PROCESS)
-    case DatabaseProcess:
-        return "databaseprocess";
-#endif
-    }
-
-    ASSERT_NOT_REACHED();
-    return 0;
-}
-
-bool ProcessLauncher::getProcessTypeFromString(const char* string, ProcessType& processType)
-{
-    if (!strcmp(string, "webprocess")) {
-        processType = WebProcess;
-        return true;
-    }
-
-#if ENABLE(NETSCAPE_PLUGIN_API)
-    if (!strcmp(string, "pluginprocess")) {
-        processType = PluginProcess;
-        return true;
-    }
-#endif
-
-    if (!strcmp(string, "networkprocess")) {
-        processType = NetworkProcess;
-        return true;
-    }
-
-#if ENABLE(DATABASE_PROCESS)
-    if (!strcmp(string, "databaseprocess")) {
-        processType = DatabaseProcess;
-        return true;
-    }
-#endif
-    return false;
-}
-
 } // namespace WebKit

Modified: trunk/Source/WebKit2/UIProcess/Launcher/ProcessLauncher.h (196492 => 196493)


--- trunk/Source/WebKit2/UIProcess/Launcher/ProcessLauncher.h	2016-02-12 20:15:30 UTC (rev 196492)
+++ trunk/Source/WebKit2/UIProcess/Launcher/ProcessLauncher.h	2016-02-12 20:17:03 UTC (rev 196493)
@@ -82,9 +82,6 @@
     void terminateProcess();
     void invalidate();
 
-    static bool getProcessTypeFromString(const char*, ProcessType&);
-    static const char* processTypeAsString(ProcessType);
-
 private:
     ProcessLauncher(Client*, const LaunchOptions& launchOptions);
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to