Closed Bug 1792567 Opened 2 years ago Closed 2 years ago

deCOM nsIMacUtils

Categories

(Core :: XPCOM, defect)

defect

Tracking

()

RESOLVED FIXED
107 Branch
Tracking Status
firefox107 --- fixed

People

(Reporter: mccr8, Assigned: mccr8)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

In her review of my patch in bug 1792355, Nika noted that the methods of nsIMacUtils are never used, and we never construct an instance of nsMacUtilsImpl.

I have a patch that deletes the unused methods, removes the XPIDL interface, then moves all of the private fields and methods into the CPP file and turns nsMacUtilsImpl into a namespace.

Assignee: nobody → continuation

All of the private methods and fields get moved into the .cpp file,
and reordered where needed.

The second patch is a bit of code churn, so I'm not sure if it is entirely worthwhile.

Pushed by amccreight@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/63e7210c153a
part 1 - deCOM and remove unused methods in nsMacUtilsImpl. r=spohl
https://hg.mozilla.org/integration/autoland/rev/83c15124953e
part 2 - Turn nsMacUtilsImpl into a namespace. r=spohl

Backed out for causing build bustages on GMPParent.cpp

  • Backout link
  • Push with failures
  • Failure Log
  • Failure line: /builds/worker/checkouts/gecko/dom/media/gmp/GMPParent.cpp:212:26: error: no member named 'GetArchitecturesForBundle' in namespace 'nsMacUtilsImpl'
Flags: needinfo?(continuation)

(In reply to Cristian Tuns from comment #5)

[...]

  • Failure line: /builds/worker/checkouts/gecko/dom/media/gmp/GMPParent.cpp:212:26: error: no member named 'GetArchitecturesForBundle' in namespace 'nsMacUtilsImpl'

I actually double-checked if we were still using GetArchitecturesForBundle anywhere before r+-ing the patch, but somehow still missed this case.

Ah, and I was building locally on x86 so I guess it didn't catch it. I thought I looked for the uses, too, but I guess I missed it.

Flags: needinfo?(continuation)

I should have checked more carefully, but it looks like that chunk of code isn't getting indexed by SearchFox. I'll file a bug about it.

See Also: → 1795177

The Arch64 build looks green with my new version of the patch.

Pushed by amccreight@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/f425664b9ece
part 1 - deCOM and remove unused methods in nsMacUtilsImpl. r=spohl
https://hg.mozilla.org/integration/autoland/rev/29a767270609
part 2 - Turn nsMacUtilsImpl into a namespace. r=spohl
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 107 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: