From 3510d9939581710f7fee49b546b9356c9fa5a516 Mon Sep 17 00:00:00 2001 From: Khang Hoang Date: Sun, 14 Jul 2019 20:40:00 -0700 Subject: [PATCH] Remove unused code --- front_end/ndb/module.json | 9 +-------- services/ndd_service.js | 13 ------------- 2 files changed, 1 insertion(+), 21 deletions(-) diff --git a/front_end/ndb/module.json b/front_end/ndb/module.json index baff7549..4113c13c 100644 --- a/front_end/ndb/module.json +++ b/front_end/ndb/module.json @@ -52,14 +52,7 @@ "className": "Ndb.ContextMenuProvider" } ], - "dependencies": [ - "common", - "sdk", - "ndb_sdk", - "bindings", - "persistence", - "components" - ], + "dependencies": ["common", "sdk", "ndb_sdk", "bindings", "persistence", "components"], "scripts": [ "InspectorFrontendHostOverrides.js", "Connection.js", diff --git a/services/ndd_service.js b/services/ndd_service.js index 085205fa..b0db0212 100644 --- a/services/ndd_service.js +++ b/services/ndd_service.js @@ -143,14 +143,6 @@ class NddService { }; } - // sendMessage(rawMessage) { - // const message = JSON.parse(rawMessage); - // // send message to frontend directly - // // (eg: getResponseBody) - // const { base64Encoded, data } = catchedRequests[message.params.requestId]; - // this._frontend.responseToFrontEnd(message.id, { base64Encoded, body: data }); - // } - async debug(execPath, args, options) { const env = this.env(); if (options.data) @@ -163,11 +155,6 @@ class NddService { windowsHide: true }); if (!options.ignoreOutput) { - // p.on('message', ({ type, payload }) => { - // if (!(type && payload)) return; - // catchedRequests[payload.id] = payload; - // this._frontend.sendNetworkData({ type, payload }); - // }); p.stderr.on('data', data => { if (process.connected) this._frontend.terminalData('stderr', data.toString('base64'));