Skip to content

Commit e3e81ff

Browse files
committed
delete useless
1 parent 09d6287 commit e3e81ff

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

app/src/main/kotlin/org/akanework/gramophone/ui/components/NewLyricsView.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,6 @@ class NewLyricsView(context: Context, attrs: AttributeSet?) : View(context, attr
367367
var timeUntilNext = 0uL
368368
var firstHighlight: Int? = null
369369
var lastHighlight: Int? = null
370-
var lastNonTranslated: SemanticLyrics.LyricLine? = null
371370
canvas.save()
372371
canvas.translate(globalPaddingHorizontal, heightSoFar.toFloat())
373372
val width = width - globalPaddingHorizontal * 2
@@ -433,8 +432,6 @@ class NewLyricsView(context: Context, attrs: AttributeSet?) : View(context, attr
433432
}
434433
heightSoFarWithoutTranslated = heightSoFar
435434
}
436-
if (it.line?.isTranslated != true)
437-
lastNonTranslated = it.line
438435
if (highlight && firstHighlight == null) {
439436
firstHighlight = heightSoFarWithoutTranslated
440437
determineTimeUntilNext = true

0 commit comments

Comments
 (0)