From 2cd1d697fe0a882015050e1de87b70f0b8057c2f Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Tue, 8 Oct 2019 10:49:58 +0200 Subject: [PATCH] Cleanup after Gafnra's review --- .../src/main/java/im/vector/riotx/core/di/VectorComponent.kt | 3 --- vector/src/main/java/im/vector/riotx/core/images/ImageTools.kt | 2 -- 2 files changed, 5 deletions(-) diff --git a/vector/src/main/java/im/vector/riotx/core/di/VectorComponent.kt b/vector/src/main/java/im/vector/riotx/core/di/VectorComponent.kt index d896ce252b..4aab312e2f 100644 --- a/vector/src/main/java/im/vector/riotx/core/di/VectorComponent.kt +++ b/vector/src/main/java/im/vector/riotx/core/di/VectorComponent.kt @@ -26,7 +26,6 @@ import im.vector.matrix.android.api.session.Session import im.vector.riotx.EmojiCompatFontProvider import im.vector.riotx.EmojiCompatWrapper import im.vector.riotx.VectorApplication -import im.vector.riotx.core.images.ImageTools import im.vector.riotx.core.pushers.PushersManager import im.vector.riotx.core.utils.DimensionConverter import im.vector.riotx.features.configuration.VectorConfiguration @@ -67,8 +66,6 @@ interface VectorComponent { fun dimensionConverter(): DimensionConverter - fun imageTools(): ImageTools - fun vectorConfiguration(): VectorConfiguration fun avatarRenderer(): AvatarRenderer diff --git a/vector/src/main/java/im/vector/riotx/core/images/ImageTools.kt b/vector/src/main/java/im/vector/riotx/core/images/ImageTools.kt index 6ada4e95fb..a2257117df 100644 --- a/vector/src/main/java/im/vector/riotx/core/images/ImageTools.kt +++ b/vector/src/main/java/im/vector/riotx/core/images/ImageTools.kt @@ -23,9 +23,7 @@ import android.provider.MediaStore import androidx.exifinterface.media.ExifInterface import timber.log.Timber import javax.inject.Inject -import javax.inject.Singleton -@Singleton class ImageTools @Inject constructor(private val context: Context) {