formatting: remove duplicate empty lines in ImageSaver

This commit is contained in:
darthpaul 2022-10-09 02:41:25 +01:00
parent cc3c2108cf
commit 89bf37d535
1 changed files with 0 additions and 4 deletions

View File

@ -21,7 +21,6 @@ import com.simplemobiletools.commons.helpers.isQPlus
import java.io.* import java.io.*
import java.util.UUID import java.util.UUID
/** /**
* Inspired by * Inspired by
* @see androidx.camera.core.ImageSaver * @see androidx.camera.core.ImageSaver
@ -37,7 +36,6 @@ class ImageSaver private constructor(
private val onError: (ImageCaptureException) -> Unit, private val onError: (ImageCaptureException) -> Unit,
) { ) {
companion object { companion object {
private const val TEMP_FILE_PREFIX = "SimpleCamera" private const val TEMP_FILE_PREFIX = "SimpleCamera"
private const val TEMP_FILE_SUFFIX = ".tmp" private const val TEMP_FILE_SUFFIX = ".tmp"
@ -66,7 +64,6 @@ class ImageSaver private constructor(
).saveImage() ).saveImage()
} }
fun saveImage() { fun saveImage() {
ensureBackgroundThread { ensureBackgroundThread {
// Save the image to a temp file first. This is necessary because ExifInterface only // Save the image to a temp file first. This is necessary because ExifInterface only
@ -289,7 +286,6 @@ class ImageSaver private constructor(
} }
} }
/** Type of error that occurred during save */ /** Type of error that occurred during save */
enum class SaveError { enum class SaveError {
/** Failed to write to or close the file */ /** Failed to write to or close the file */