Closed Bug 1627795 Opened 4 years ago Closed 4 years ago

Remove getCssProperties(toobox) helper

Categories

(DevTools :: General, task, P3)

task

Tracking

(firefox77 fixed)

RESOLVED FIXED
Firefox 77
Tracking Status
firefox77 --- fixed

People

(Reporter: rcaliman, Assigned: rcaliman)

Details

Attachments

(1 file)

The getCssProperties() helper in devtools/client/fronts/css-properties.js doesn't seem to be used anywhere aside from three tests, one of which tests the method itself:

getCssProperties() seems to be leveraging a cached CssProperties object, keyed by DevtToolsClient instance. But there aren't any consumers for this.

The CssProperties object is a reconcilliation between a client CSS database with one received from the CssProperties front which attempts to return an accurate list of CSS properties and capabilities supported by the server.

But in two of the tests, the actual usage of getCssProperties() is against a mock object, circumventing a trip to the server. For this use case, the getClientCssProperties() method seems more appropriate.

Given the lack of meaningful usage, the getCssProperties() helper should be removed.

As mentioned on slack:

IMO it's fine to remove this, the front has not been used for 18 months, it seems like a leftover from the previous cleanup.

Assignee: nobody → rcaliman
Status: NEW → ASSIGNED
Priority: -- → P3
Pushed by rcaliman@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/1aa79304d2f4
Remove unused getCssProperties() helper r=gl
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 77
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: