Problem/Motivation

The patch in #2540936: Remove style settings from custom style form removes one usage of _styleswitcher_weight_delta() and _styleswitcher_weight_max() functions leaving only one more usage of _styleswitcher_weight_delta() (in styles overview form).

Proposed resolution

Move code of _styleswitcher_weight_max() into _styleswitcher_weight_delta().
Remove the use of static vars as it is not useful anymore.

API changes

Function _styleswitcher_weight_max() is removed.

Comments

pingwin4eg’s picture

Status: Active » Needs review
StatusFileSize
new1.89 KB

  • pingwin4eg committed 6e79223 on 7.x-2.x
    Issue #2541042 by pingwin4eg: Refactoring: Combine...
pingwin4eg’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.