Bug 1686933 - [devtools] Remove unused sendPacket/sendPacketToThread helpers r=bomsy

Differential Revision: https://phabricator.services.mozilla.com/D101920
This commit is contained in:
Julian Descottes 2021-01-18 11:35:24 +00:00
Родитель 3beb46b1eb
Коммит 59f257e05b
2 изменённых файлов: 0 добавлений и 18 удалений

Просмотреть файл

@ -104,10 +104,6 @@ function releaseActor(actor: String) {
}
}
function sendPacket(packet: Object) {
return devToolsClient.request(packet);
}
// Get a copy of the current targets.
function getTargetsMap(): { string: Target } {
return Object.assign({}, targets);
@ -578,7 +574,6 @@ const clientCommands = {
addThread,
removeThread,
getMainThread,
sendPacket,
setSkipPausing,
setEventListenerBreakpoints,
getEventListenerBreakpointTypes,

Просмотреть файл

@ -24,17 +24,6 @@ function findSources(dbg: any, url: URL): Source[] {
return sources.filter(s => (s.url || "").includes(url));
}
function sendPacket(dbg: any, packet: any) {
return dbg.client.sendPacket(packet);
}
function sendPacketToThread(dbg: Object, packet: any) {
return sendPacket(dbg, {
to: getThreadFront(dbg).actor,
...packet,
});
}
function evaluate(dbg: Object, expression: any) {
return dbg.client.evaluate(expression);
}
@ -93,8 +82,6 @@ export function setupHelper(obj: Object) {
findSource: url => findSource(dbg, url),
findSources: url => findSources(dbg, url),
evaluate: expression => evaluate(dbg, expression),
sendPacketToThread: packet => sendPacketToThread(dbg, packet),
sendPacket: packet => sendPacket(dbg, packet),
dumpThread: () => getThreadFront(dbg).dumpThread(),
getDocument: url => getDocumentForUrl(dbg, url),
},