Remove unused XMLHTTPRequestMainThread::SetRequestObserver()
Categories
(Core :: DOM: Networking, task, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox111 | --- | fixed |
People
(Reporter: manuel, Assigned: gzyfqh, Mentored)
Details
(Keywords: good-first-bug, Whiteboard: [necko-triaged])
Attachments
(1 file)
XMLHTTPRequestMainThread::SetRequestObserver() is unused. Therefore mRequestObserver is always nullptr
and can be removed alongside this function.
Reporter | ||
Comment 2•2 years ago
|
||
Sure :). Feel free to take on this bug. You can reach out if you need any help.
(In reply to Manuel Bucher [:manuel] from comment #2)
Sure :). Feel free to take on this bug. You can reach out if you need any help.
Ok, I will submit a commit about this bug in the near future
In addition, I would like to ask, is there anything else that needs to be paid attention to when dealing with this bug?
Reporter | ||
Comment 4•2 years ago
|
||
Thanks. It looks like there is at least one more dead code path that needs to get removed alongside, because mRequestObserver
is always nullptr:
if (!mFirstStartRequestSeen && mRequestObserver) {
mFirstStartRequestSeen = true;
mRequestObserver->OnStartRequest(request);
}
And mFirstStartRequestSeen
won't be set to true anywhere and can get removed as well.
After removing the variables, make sure that everything is still compiling. With that, it will probably be ready to land.
Remove unused XMLHTTPRequestMainThread::SetRequestObserver() in code
(In reply to Manuel Bucher [:manuel] from comment #4)
Thanks. It looks like there is at least one more dead code path that needs to get removed alongside, because
mRequestObserver
is always nullptr:if (!mFirstStartRequestSeen && mRequestObserver) { mFirstStartRequestSeen = true; mRequestObserver->OnStartRequest(request); }
And
mFirstStartRequestSeen
won't be set to true anywhere and can get removed as well.After removing the variables, make sure that everything is still compiling. With that, it will probably be ready to land.
@manuel, please review the new commit
Comment 8•2 years ago
|
||
bugherder |
Description
•