Remove dead migration code for mousewheel animation speed
Categories
(Core :: Panning and Zooming, task)
Tracking
()
People
(Reporter: kats, Assigned: kats)
References
Details
Attachments
(2 files)
Bug 1660933 added some code to gradually migrate users from old values of mousewheel animation prefs to new values. That migration completed in FF 86, and so the code for it can now be removed. Filing this bug to track the removal.
Assignee | ||
Comment 1•3 years ago
|
||
Assignee | ||
Comment 2•3 years ago
|
||
This is essentially dead-code removal. Since the GetNormalizedAppVersion()
now always returns 86, the value of the migration
variable in
GetMouseWheelAnimationDurations() is always 100. And thus the function
always returns the unmodified minMS and maxMS values stored in the prefs.
We can therefore remove the function entirely and just use the pref
values directly in the callers.
Depends on D116321
Assignee | ||
Comment 3•3 years ago
|
||
With the migration completed, we don't need to keep this pref
around anymore. The profile migration code used to set the pref
value to 0 but since FF 86 the value of the pref didn't matter
as the code would always clamp it to 100. So for consistency
we eliminate that setting of the pref as well.
Depends on D116322
Pushed by kgupta@mozilla.staktrace.com: https://hg.mozilla.org/integration/autoland/rev/86af980c5710 Remove code for completed migration. r=hiro https://hg.mozilla.org/integration/autoland/rev/3a9cf4ad9344 Remove unused migrationPercent pref. r=botond
Comment 5•3 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/86af980c5710
https://hg.mozilla.org/mozilla-central/rev/3a9cf4ad9344
Updated•3 years ago
|
Description
•