Closed Bug 1730595 Opened 3 years ago Closed 3 years ago

nsDOMOfflineResourceList.cpp:51:19: warning: unused variable 'kMaxEntriesPref' [-Wunused-const-variable]

Categories

(Core :: DOM: Core & HTML, task)

task

Tracking

()

RESOLVED FIXED
94 Branch
Tracking Status
firefox94 --- fixed

People

(Reporter: dholbert, Assigned: dholbert)

Details

Attachments

(1 file)

Noticed this build warning, when building with --disable-unified-build:

dom/offline/nsDOMOfflineResourceList.cpp:51:19: warning: unused variable 'kMaxEntriesPref' [-Wunused-const-variable]
static const char kMaxEntriesPref[] = "offline.max_site_resources";

Indeed, this variable seems to be unused (and seems to be the only reference to offline.max_site_resources in our codebase). Presumably this pref isn't supported/meaningful anymore:
https://searchfox.org/mozilla-central/search?q=symbol:_ZL15kMaxEntriesPref&redirect=false

Let's remove the unused variable.

Component: DOM: Web Crypto → DOM: Core & HTML

The following two defines are also unused, too, so I'll get rid of those while I'm here.

...and the various #define ..._STR that are before this section seem to be unused, as well.

Pushed by dholbert@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/beaa29229ad1
Remove unused constants from nsDOMOfflineResourceList.cpp. r=mccr8
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 94 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: