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 439526 594454d6b1cce40d69e021d5cf6e5aada279a38d
parent 439525 3e260539c399797e74ab7bebdad9cf62207a5e23
child 439527 6a2f74caa1c2afa5bc7af596ca37880939aaaa30
push id34778
push usernbeleuzu@mozilla.com
push dateThu, 04 Oct 2018 15:22:02 +0000
treeherdermozilla-central@01634947caab [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersladybenko
bugs1491764
milestone64.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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: [],
   };
 }