From 99666b01733b95536f44845cdd48ec94d53d186e Mon Sep 17 00:00:00 2001 From: tibbi Date: Tue, 18 Apr 2017 18:57:24 +0200 Subject: [PATCH] remove some redundant functions --- .../gallery/adapters/MediaAdapter.kt | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/MediaAdapter.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/MediaAdapter.kt index 609228e7c..235c9621b 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/MediaAdapter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/MediaAdapter.kt @@ -73,8 +73,8 @@ class MediaAdapter(val activity: SimpleActivity, var media: MutableList, R.id.cab_rename -> renameFile() R.id.cab_edit -> editFile() R.id.cab_share -> shareMedia() - R.id.cab_copy_to -> copyTo() - R.id.cab_move_to -> moveTo() + R.id.cab_copy_to -> copyMoveTo(true) + R.id.cab_move_to -> copyMoveTo(false) R.id.cab_select_all -> selectAll() R.id.cab_delete -> askConfirmDelete() else -> return false @@ -151,14 +151,6 @@ class MediaAdapter(val activity: SimpleActivity, var media: MutableList, } } - private fun copyTo() { - copyMoveTo(true) - } - - private fun moveTo() { - copyMoveTo(false) - } - fun selectAll() { val cnt = media.size for (i in 0..cnt - 1) {