зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1686933 - [devtools] Remove unused sendPacket/sendPacketToThread helpers r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D101920
This commit is contained in:
Родитель
3beb46b1eb
Коммит
59f257e05b
|
@ -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),
|
||||
},
|
||||
|
|
Загрузка…
Ссылка в новой задаче