From 94dae2ef6f9bbc7510a1cf2f27da9ddd300bb710 Mon Sep 17 00:00:00 2001 From: Philipp Jahoda Date: Tue, 15 Sep 2015 12:47:31 +0200 Subject: [PATCH] Remove comments --- .../github/mikephil/charting/utils/ViewPortHandler.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/MPChartLib/src/com/github/mikephil/charting/utils/ViewPortHandler.java b/MPChartLib/src/com/github/mikephil/charting/utils/ViewPortHandler.java index a80432b994..44ae1001c4 100644 --- a/MPChartLib/src/com/github/mikephil/charting/utils/ViewPortHandler.java +++ b/MPChartLib/src/com/github/mikephil/charting/utils/ViewPortHandler.java @@ -302,18 +302,14 @@ public void limitTransAndScale(Matrix matrix, RectF content) { float newTransX = Math.min(Math.max(curTransX, maxTransX - mTransOffsetX), mTransOffsetX); mTransX = newTransX; - // if(curScaleX < mMinScaleX) { - // newTransX = (-width * (mScaleX - 1f)) / 2f; - // } - float maxTransY = height * (mScaleY - 1f); float newTransY = Math.max(Math.min(curTransY, maxTransY + mTransOffsetY), -mTransOffsetY); mTransY = newTransY; - vals[Matrix.MTRANS_X] = newTransX; + vals[Matrix.MTRANS_X] = mTransX; vals[Matrix.MSCALE_X] = mScaleX; - vals[Matrix.MTRANS_Y] = newTransY; + vals[Matrix.MTRANS_Y] = mTransY; vals[Matrix.MSCALE_Y] = mScaleY; matrix.setValues(vals);