fix: Remove deprecated elements

This commit is contained in:
Florian Bouillon 2023-02-28 16:45:18 +01:00
parent 6ab36e9ade
commit df985b23ab
Signed by: Florian Bouillon
GPG Key ID: E05B3A94178D3A7C
2 changed files with 0 additions and 27 deletions

View File

@ -43,13 +43,6 @@ class YAxis(
private var min: Float? = null
private var max: Float? = null
@Deprecated("use the new global function", replaceWith = ReplaceWith("YAxisInterface.addLine"))
override var drawZeroLine: Boolean = false
set(value) {
addLine(0f, Line())
field = value
}
override var scrollEnabled: Boolean = false
private val rect = Rect()
@ -245,13 +238,6 @@ class YAxis(
lines.clear()
}
@Deprecated("use the new global function", ReplaceWith("YAxisInterface.addLine"))
override fun setGoalLine(height: Float?) {
if (height != null) {
addLine(height, Line(true))
}
}
override fun getPositionOnRect(entry: Entry, drawableSpace: RectF): Float {
if (view.type == ChartType.STACKED) {
val serie = view.series.find { it.entries.contains(entry) }

View File

@ -41,12 +41,6 @@ sealed interface YAxisInterface {
var onValueFormat: (value: Float) -> String
/**
* do the Zero line gets drawn?
*/
@Deprecated("use the new global function", ReplaceWith("YAxisInterface.addLine"))
var drawZeroLine: Boolean
/**
* run when manually refreshing the system
*
@ -92,13 +86,6 @@ sealed interface YAxisInterface {
*/
fun onDraw(canvas: Canvas, space: RectF): Float
/**
* Add a Goal line
*
*/
@Deprecated("use the new global function", ReplaceWith("YAxisInterface.addLine"))
fun setGoalLine(height: Float?)
/**
* add a line on the Chart
*