Skip to content

Commit 94dae2e

Browse files
committed
Remove comments
1 parent ba15207 commit 94dae2e

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

MPChartLib/src/com/github/mikephil/charting/utils/ViewPortHandler.java

+2-6
Original file line numberDiff line numberDiff line change
@@ -302,18 +302,14 @@ public void limitTransAndScale(Matrix matrix, RectF content) {
302302
float newTransX = Math.min(Math.max(curTransX, maxTransX - mTransOffsetX), mTransOffsetX);
303303
mTransX = newTransX;
304304

305-
// if(curScaleX < mMinScaleX) {
306-
// newTransX = (-width * (mScaleX - 1f)) / 2f;
307-
// }
308-
309305
float maxTransY = height * (mScaleY - 1f);
310306
float newTransY = Math.max(Math.min(curTransY, maxTransY + mTransOffsetY), -mTransOffsetY);
311307
mTransY = newTransY;
312308

313-
vals[Matrix.MTRANS_X] = newTransX;
309+
vals[Matrix.MTRANS_X] = mTransX;
314310
vals[Matrix.MSCALE_X] = mScaleX;
315311

316-
vals[Matrix.MTRANS_Y] = newTransY;
312+
vals[Matrix.MTRANS_Y] = mTransY;
317313
vals[Matrix.MSCALE_Y] = mScaleY;
318314

319315
matrix.setValues(vals);

0 commit comments

Comments
 (0)