DescriptionAvoid useless initialization in ScrollAnimatorNone::PerAxisData::animateScroll()
Avoid useless initialization in ScrollAnimatorNone::PerAxisData::animateScroll().
The value initially assigned to newPosition was always overwritten. Therefore,
the initial assignment can be omitted. This CL moves the initialization code to a
new inline function and initializes directly the newPosition variable with the
result of this new function.
The clang static code analizer was reporting this as a dead initialization.
R=abarth@chromium.org, eseidel@chromium.org
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=172001
Patch Set 1 #
Total comments: 2
Patch Set 2 : Move code to a new inline function #
Messages
Total messages: 6 (0 generated)
|