Skip to content

Commit b0e5773

Browse files
committed
Cosmetic
1 parent e04982d commit b0e5773

File tree

2 files changed

+1
-20
lines changed

2 files changed

+1
-20
lines changed

MPChartLib/src/main/java/com/github/mikephil/charting/renderer/AxisRenderer.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ abstract class AxisRenderer(
9898
*/
9999
open fun computeAxis(min: Float, max: Float, inverted: Boolean) {
100100
// calculate the starting and entry point of the y-labels (depending on
101-
// zoom / contentrect bounds)
101+
// zoom / content rect bounds)
102102

103103
var minLocal = min
104104
var maxLocal = max
@@ -129,7 +129,6 @@ abstract class AxisRenderer(
129129
* @return
130130
*/
131131
protected open fun computeAxisValues(min: Float, max: Float) {
132-
133132
val labelCount = axis.labelCount
134133
val range = abs((max - min).toDouble())
135134

MPChartLib/src/main/java/com/github/mikephil/charting/renderer/YAxisRenderer.kt

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ open class YAxisRenderer(viewPortHandler: ViewPortHandler, @JvmField protected v
2121

2222
/**
2323
* Return the axis label x position based on axis dependency and label position
24-
* @param dependency
25-
* @param labelPosition
26-
* @return
2724
*/
2825
private fun calculateAxisLabelsXPosition(dependency: AxisDependency, labelPosition: YAxisLabelPosition): Float {
2926
val viewPortBase = if (dependency == AxisDependency.LEFT) viewPortHandler.offsetLeft() else viewPortHandler.contentRight()
@@ -34,9 +31,6 @@ open class YAxisRenderer(viewPortHandler: ViewPortHandler, @JvmField protected v
3431

3532
/**
3633
* Return the text align based on axis dependency and label position
37-
* @param dependency
38-
* @param labelPosition
39-
* @return
4034
*/
4135
private fun getAxisLabelTextAlign(dependency: AxisDependency, labelPosition: YAxisLabelPosition): Align {
4236
if ((dependency == AxisDependency.LEFT) xor (labelPosition == YAxisLabelPosition.OUTSIDE_CHART)) {
@@ -94,9 +88,6 @@ open class YAxisRenderer(viewPortHandler: ViewPortHandler, @JvmField protected v
9488

9589
/**
9690
* draws the y-labels on the specified x-position
97-
*
98-
* @param fixedPosition
99-
* @param positions
10091
*/
10192
protected open fun drawYLabels(c: Canvas, fixedPosition: Float, positions: FloatArray, offset: Float) {
10293
val from: Int
@@ -185,11 +176,6 @@ open class YAxisRenderer(viewPortHandler: ViewPortHandler, @JvmField protected v
185176

186177
/**
187178
* Calculates the path for a grid line.
188-
*
189-
* @param p
190-
* @param i
191-
* @param positions
192-
* @return
193179
*/
194180
protected open fun linePath(p: Path, i: Int, positions: FloatArray): Path? {
195181
p.moveTo(viewPortHandler.offsetLeft(), positions[i + 1])
@@ -204,8 +190,6 @@ open class YAxisRenderer(viewPortHandler: ViewPortHandler, @JvmField protected v
204190
/**
205191
* Transforms the values contained in the axis entries to screen pixels and returns them in form of a float array
206192
* of x- and y-coordinates.
207-
*
208-
* @return
209193
*/
210194
get() {
211195
if (yAxis.isShowSpecificPositions) {
@@ -286,8 +270,6 @@ open class YAxisRenderer(viewPortHandler: ViewPortHandler, @JvmField protected v
286270

287271
/**
288272
* Draws the LimitLines associated with this axis to the screen.
289-
*
290-
* @param c
291273
*/
292274
override fun renderLimitLines(c: Canvas) {
293275
val limitLines = yAxis.limitLines

0 commit comments

Comments
 (0)