Skip to content

Commit

Permalink
Refactor: Remove unused formatAndSaveLyricsForSong function
Browse files Browse the repository at this point in the history
  • Loading branch information
kerollosy committed Nov 30, 2024
1 parent 06b96d0 commit de748b3
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions app/src/main/java/pl/lambada/songsync/util/LyricsUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -289,26 +289,6 @@ private fun formatLyrics(
return lrcContent
}

private fun formatAndSaveLyricsForSong(
song: Song,
context: Context,
sdCardPath: String?,
songInfo: SongInfo,
lyrics: String,
directOffset: Boolean
) {
val targetFile = song.filePath.toLrcFile()

val lrcContent = generateLrcContent(
songInfo,
lyrics,
context.getString(R.string.generated_using),
directOffset = directOffset
)

writeLyricsToFile(targetFile, lrcContent, context, song, sdCardPath)
}

fun saveToExternalPath(
context: Context,
sourceFilePath: String?,
Expand Down

0 comments on commit de748b3

Please sign in to comment.