Bug 1491764 - Remove unused networkRuntimes parameter from RuntimesState constructor;r=ladybenko
authorJulian Descottes <jdescottes@mozilla.com>
Wed, 03 Oct 2018 08:50:12 +0000
changeset 487952 594454d6b1cce40d69e021d5cf6e5aada279a38d
parent 487951 3e260539c399797e74ab7bebdad9cf62207a5e23
child 487953 6a2f74caa1c2afa5bc7af596ca37880939aaaa30
push id246
push userfmarier@mozilla.com
push dateSat, 13 Oct 2018 00:15:40 +0000
reviewersladybenko
bugs1491764
milestone64.0a1
Bug 1491764 - Remove unused networkRuntimes parameter from RuntimesState constructor;r=ladybenko Depends on D7307. This was not mentioned in the bug description but this cleanup is also related to support of network locations runtime. The RuntimesState() method accepts a networkRuntimes parameter at the moment, but it is never provided. Differential Revision: https://phabricator.services.mozilla.com/D7308
devtools/client/aboutdebugging-new/src/reducers/runtimes-state.js
--- a/devtools/client/aboutdebugging-new/src/reducers/runtimes-state.js
+++ b/devtools/client/aboutdebugging-new/src/reducers/runtimes-state.js
@@ -20,19 +20,19 @@ const {
 
 // Map between known runtime types and nodes in the runtimes state.
 const TYPE_TO_RUNTIMES_KEY = {
   [RUNTIMES.THIS_FIREFOX]: "thisFirefoxRuntimes",
   [RUNTIMES.NETWORK]: "networkRuntimes",
   [RUNTIMES.USB]: "usbRuntimes",
 };
 
-function RuntimesState(networkRuntimes = []) {
+function RuntimesState() {
   return {
-    networkRuntimes,
+    networkRuntimes: [],
     selectedRuntimeId: null,
     thisFirefoxRuntimes: [{
       id: RUNTIMES.THIS_FIREFOX,
       type: RUNTIMES.THIS_FIREFOX,
     }],
     usbRuntimes: [],
   };
 }