Closed Bug 1635689 Opened 5 years ago Closed 5 years ago

Stop generating get() methods for unions

Categories

(Core :: IPC, task)

task

Tracking

()

RESOLVED FIXED
mozilla78
Tracking Status
firefox78 --- fixed

People

(Reporter: sg, Assigned: nika)

References

Details

Attachments

(2 files)

No description provided.

For context, this is about the overloaded get method with a pointer out param, which needs to copy out the contained value, which is a problem for non-copyable types. Nika thinks that they're not actually used (vs. the get_TypeName methods) and we could probably just delete the code for them entirely.

(The code appears to be here if I understand lower.py correctly.)

Assignee: nobody → nika

This code is the only caller of this generated method.

This method always copies, and is redundant with the other getter methods on
IPDL unions. As there is only one caller, it can be removed to simplify the
code, and remove a source of complexity.

Pushed by nlayzell@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/fc7f55903e90 Part 1: Stop using 'get' method on IPDL unions in gfxVars.h, r=jrmuizel https://hg.mozilla.org/integration/autoland/rev/3d76df0fb77c Part 2: Stop generating 'get' method on IPDL unions, r=jld
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla78
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: