From 77b7608636a4578d8c5754ead053452e4c98a62c Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 18 Jun 2017 18:19:03 +0200 Subject: [PATCH] remove the unused displayAspectRatio variable --- .../com/simplemobiletools/gallery/fragments/PhotoFragment.kt | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/PhotoFragment.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/PhotoFragment.kt index e1fc50186..e3122eef4 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/PhotoFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/PhotoFragment.kt @@ -230,8 +230,6 @@ class PhotoFragment : ViewPagerFragment() { } private fun getDoubleTapZoomScale(): Float { - val displayAspectRatio = ViewPagerActivity.screenHeight / (ViewPagerActivity.screenWidth).toFloat() - val bitmapOptions = BitmapFactory.Options() bitmapOptions.inJustDecodeBounds = true BitmapFactory.decodeFile(medium.path, bitmapOptions)