Closed Bug 1782337 Opened 2 years ago Closed 2 years ago

Remove unused LineWatcher

Categories

(Core :: IPC, task, P3)

task

Tracking

()

RESOLVED FIXED
105 Branch
Tracking Status
firefox-esr91 --- wontfix
firefox-esr102 --- wontfix
firefox103 --- wontfix
firefox104 --- wontfix
firefox105 --- fixed

People

(Reporter: cpeterson, Assigned: cpeterson)

References

Details

Attachments

(1 file)

gcc reports a -Wlogical-op warning about an if statement with duplicate expressions because EAGAIN and EWOULDBLOCK have the same value on some systems (like Linux, Android, and macOS, but not Windows).

However, instead of fixing this -Wlogical-op warning, we can just remove the LineWatcher class because it's unused. It was added for Firefox OS in bug 805478.

ipc/chromium/src/base/message_pump_libevent.cc:422:29: warning: logical 'or' of equal expressions [-Wlogical-op]

        if (errno == EAGAIN || errno == EWOULDBLOCK) {
          return;  // no data available: return and re-poll
        }

https://searchfox.org/mozilla-central/rev/4a15041348e08fb0d6f5726015c32861e663fbfe/ipc/chromium/src/base/message_pump_libevent.cc#422

Pushed by cpeterson@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/c6bd9e91eb46
Remove unused LineWatcher. r=ipc-reviewers,jld
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 105 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: