mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-03 23:16:13 +00:00
Remove redundant mr variable.
This commit is contained in:
@@ -56,9 +56,6 @@ class GlyphContext {
|
|||||||
// Cached per push context
|
// Cached per push context
|
||||||
private double fontSize = DEFAULT_FONT_SIZE;
|
private double fontSize = DEFAULT_FONT_SIZE;
|
||||||
|
|
||||||
// Current values
|
|
||||||
private float mr;
|
|
||||||
|
|
||||||
// Current accumulated values
|
// Current accumulated values
|
||||||
private float mx;
|
private float mx;
|
||||||
private float my;
|
private float my;
|
||||||
@@ -200,7 +197,7 @@ class GlyphContext {
|
|||||||
private void reset() {
|
private void reset() {
|
||||||
mXsIndex = mYsIndex = mRsIndex = mdXsIndex = mdYsIndex = 0;
|
mXsIndex = mYsIndex = mRsIndex = mdXsIndex = mdYsIndex = 0;
|
||||||
mXIndex = mYIndex = mRIndex = mdXIndex = mdYIndex = -1;
|
mXIndex = mYIndex = mRIndex = mdXIndex = mdYIndex = -1;
|
||||||
mx = my = mr = mdx = mdy = 0;
|
mx = my = mdx = mdy = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void popContext() {
|
void popContext() {
|
||||||
@@ -297,9 +294,7 @@ class GlyphContext {
|
|||||||
|
|
||||||
mRIndex = Math.min(mRIndex + 1, mRs.length - 1);
|
mRIndex = Math.min(mRIndex + 1, mRs.length - 1);
|
||||||
|
|
||||||
mr = mRs[mRIndex];
|
return mRs[mRIndex];
|
||||||
|
|
||||||
return mr;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
float nextDeltaX() {
|
float nextDeltaX() {
|
||||||
|
|||||||
Reference in New Issue
Block a user