EZ refactor in ReactViewBackgroundDrawable

Summary:
EZ refactor in ReactViewBackgroundDrawable to remove an unnecessary class variable

changelog: [internal] Internal

Reviewed By: RSNara

Differential Revision: D22874851

fbshipit-source-id: 16808809b196cba0dab5c9972359d7786939a7ce
This commit is contained in:
David Vacca
2020-08-01 13:31:02 -07:00
committed by Facebook GitHub Bot
parent f8f53e595c
commit aee1ae9e92
@@ -86,8 +86,6 @@ public class ReactViewBackgroundDrawable extends Drawable {
private @Nullable Spacing mBorderAlpha;
private @Nullable BorderStyle mBorderStyle;
/* Used for rounded border and rounded background */
private @Nullable PathEffect mPathEffectForBorderStyle;
private @Nullable Path mInnerClipPathForBorderRadius;
private @Nullable Path mOuterClipPathForBorderRadius;
private @Nullable Path mPathForBorderRadiusOutline;
@@ -970,7 +968,8 @@ public class ReactViewBackgroundDrawable extends Drawable {
/** Set type of border */
private void updatePathEffect() {
mPathEffectForBorderStyle =
// Used for rounded border and rounded background
PathEffect mPathEffectForBorderStyle =
mBorderStyle != null ? BorderStyle.getPathEffect(mBorderStyle, getFullBorderWidth()) : null;
mPaint.setPathEffect(mPathEffectForBorderStyle);