Skip to content

Commit b73e3d0

Browse files
committed
Cleaned up this residue
1 parent 9c546bc commit b73e3d0

1 file changed

Lines changed: 0 additions & 39 deletions

File tree

MPChartLib/src/com/github/mikephil/charting/renderer/PieChartRenderer.java

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -366,45 +366,6 @@ protected void drawCenterText(Canvas c) {
366366
c.translate(boundingRect.left, boundingRect.top + (boundingRect.height() - layoutHeight) / 2.f);
367367
mCenterTextLayout.draw(c);
368368
c.restore();
369-
370-
// }
371-
//
372-
// else {
373-
//
374-
//
375-
// // get all lines from the text
376-
// String[] lines = centerText.toString().split("\n");
377-
//
378-
// float maxlineheight = 0f;
379-
//
380-
// // calc the maximum line height
381-
// for (String line : lines) {
382-
// float curHeight = Utils.calcTextHeight(mCenterTextPaint, line);
383-
// if (curHeight > maxlineheight)
384-
// maxlineheight = curHeight;
385-
// }
386-
//
387-
// float linespacing = maxlineheight * 0.25f;
388-
//
389-
// float totalheight = maxlineheight * lines.length - linespacing * (lines.length - 1);
390-
//
391-
// int cnt = lines.length;
392-
//
393-
// float y = center.y;
394-
//
395-
// for (int i = 0; i < lines.length; i++) {
396-
//
397-
// String line = lines[lines.length - i - 1];
398-
//
399-
//
400-
//
401-
// c.drawText(line, center.x, y
402-
// + maxlineheight * cnt - totalheight / 2f,
403-
// mCenterTextPaint);
404-
// cnt--;
405-
// y -= linespacing;
406-
// }
407-
// }
408369
}
409370
}
410371

0 commit comments

Comments
 (0)