From 85020cb302cf102a7c90089561e00e7e8407d501 Mon Sep 17 00:00:00 2001 From: ii2001 Date: Thu, 26 Sep 2024 17:07:57 +0900 Subject: [PATCH] :fire: comment --- .../presentation/core/util/ImageUtils.kt | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/android/app/src/main/java/net/pengcook/android/presentation/core/util/ImageUtils.kt b/android/app/src/main/java/net/pengcook/android/presentation/core/util/ImageUtils.kt index 7ee646c0..e486621e 100644 --- a/android/app/src/main/java/net/pengcook/android/presentation/core/util/ImageUtils.kt +++ b/android/app/src/main/java/net/pengcook/android/presentation/core/util/ImageUtils.kt @@ -50,23 +50,6 @@ class ImageUtils( file, ) -// fun processImageUri(uri: Uri): String? = -// try { -// val inputStream = context.contentResolver.openInputStream(uri) -// if (inputStream != null) { -// val tempFile = createTempImageFile() -// tempFile.outputStream().use { outputStream -> -// inputStream.copyTo(outputStream) -// } -// tempFile.absolutePath -// } else { -// null -// } -// } catch (e: IOException) { -// e.printStackTrace() -// null -// } - fun isPermissionGranted(permissions: Array): Boolean = permissions.all { ContextCompat.checkSelfPermission(context, it) == PackageManager.PERMISSION_GRANTED