Closed Bug 1686933 Opened 5 years ago Closed 5 years ago

Remove unused sendPacket/sendPacketToThread helpers

Categories

(DevTools :: Debugger, task, P3)

task

Tracking

(firefox86 fixed)

RESOLVED FIXED
86 Branch
Tracking Status
firefox86 --- fixed

People

(Reporter: jdescottes, Assigned: jdescottes)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Those helpers rely on debugger-client::request, but are not used anywhere. Can be removed.

https://searchfox.org/mozilla-central/search?q=sendPacket&path=devtools%2Fclient&case=false&regexp=false

devtools/client/debugger/src/client/firefox/commands.js defines and exports sendPacket.
This sendPacket is only used by devtools/client/debugger/src/utils/dbg.js

devtools/client/debugger/src/utils/dbg.js uses commands.js::sendPacket in its own sendPacket.
dbg.js::sendPacket is used in dbg.js::sendPacketToThread which is unused.
dbg.js::sendPacket is also exported via the "dbg.helpers" object which is set on the window and then potentially used by createDebuggerContext, which looks like a helper for non-debugger tests which need to interact with the debugger.

Probably more cleanup can be done around this helpers object, a lot of things seem unused and outdated.

Pushed by jdescottes@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d62643e8e360 [devtools] Remove unused sendPacket/sendPacketToThread helpers r=bomsy
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 86 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: