Skip to content
This repository was archived by the owner on Jul 28, 2023. It is now read-only.

Commit 77b7cfe

Browse files
committed
Remove unused code
1 parent 9b51ded commit 77b7cfe

File tree

3 files changed

+1
-50
lines changed

3 files changed

+1
-50
lines changed

Diff for: front_end/ndb/NdbMain.js

-29
Original file line numberDiff line numberDiff line change
@@ -175,35 +175,6 @@ Ndb.NodeProcessManager = class extends Common.Object {
175175
return manager;
176176
}
177177

178-
// async sendMessageToBackend(message) {
179-
// if (this._service && this._service.sendMessage)
180-
// return this._service.sendMessage(message);
181-
// }
182-
183-
// sendLoadingFinished({ type, payload }) {
184-
// SDK._mainConnection._onMessage(JSON.stringify({
185-
// method: 'Network.loadingFinished',
186-
// params: payload
187-
// }));
188-
// }
189-
//
190-
// responseToFrontEnd(id, result) {
191-
// InspectorFrontendHost.events.dispatchEventToListeners(
192-
// InspectorFrontendHostAPI.Events.DispatchMessage,
193-
// {
194-
// id,
195-
// result
196-
// }
197-
// );
198-
// }
199-
200-
// sendNetworkData({ type, payload }) {
201-
// SDK._mainConnection._onMessage(JSON.stringify({
202-
// method: type,
203-
// params: payload
204-
// }));
205-
// }
206-
207178
env() {
208179
return this._service.env();
209180
}

Diff for: front_end/ndb/module.json

+1-8
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,7 @@
5252
"className": "Ndb.ContextMenuProvider"
5353
}
5454
],
55-
"dependencies": [
56-
"common",
57-
"sdk",
58-
"ndb_sdk",
59-
"bindings",
60-
"persistence",
61-
"components"
62-
],
55+
"dependencies": ["common", "sdk", "ndb_sdk", "bindings", "persistence", "components"],
6356
"scripts": [
6457
"InspectorFrontendHostOverrides.js",
6558
"Connection.js",

Diff for: services/ndd_service.js

-13
Original file line numberDiff line numberDiff line change
@@ -143,14 +143,6 @@ class NddService {
143143
};
144144
}
145145

146-
// sendMessage(rawMessage) {
147-
// const message = JSON.parse(rawMessage);
148-
// // send message to frontend directly
149-
// // (eg: getResponseBody)
150-
// const { base64Encoded, data } = catchedRequests[message.params.requestId];
151-
// this._frontend.responseToFrontEnd(message.id, { base64Encoded, body: data });
152-
// }
153-
154146
async debug(execPath, args, options) {
155147
const env = this.env();
156148
if (options.data)
@@ -163,11 +155,6 @@ class NddService {
163155
windowsHide: true
164156
});
165157
if (!options.ignoreOutput) {
166-
// p.on('message', ({ type, payload }) => {
167-
// if (!(type && payload)) return;
168-
// catchedRequests[payload.id] = payload;
169-
// this._frontend.sendNetworkData({ type, payload });
170-
// });
171158
p.stderr.on('data', data => {
172159
if (process.connected)
173160
this._frontend.terminalData('stderr', data.toString('base64'));

0 commit comments

Comments
 (0)