Closed Bug 1881214 Opened 1 year ago Closed 1 year ago

Remove unused functions in StyleEditorUtil.sys.mjs

Categories

(DevTools :: Style Editor, task)

task

Tracking

(firefox125 fixed)

RESOLVED FIXED
125 Branch
Tracking Status
firefox125 --- fixed

People

(Reporter: standard8, Assigned: standard8)

Details

Attachments

(1 file)

I was looking at console usage and spotted this line in StyleEditorUtil.sys.mjs

console.logStringMessage(Array.prototype.slice.call(arguments).join(" "));

That looked wrong because console doesn't have logStringMessage function available, however Services.console does have it.

Looking at where the file gets imported, I noticed that the log and assert functions are not used, which is why this doesn't currently cause any errors. We can therefore remove those.

Pushed by mbanner@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b40144fc5c19 Remove unused functions from StyleEditorUtil.sys.mjs. r=devtools-reviewers,nchevobbe
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 125 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: