From a837ace498c563f983263c6f93aa4c27fb4a6a38 Mon Sep 17 00:00:00 2001 From: tibbi Date: Wed, 29 Mar 2017 20:11:37 +0200 Subject: [PATCH] remove a redundant function --- .../calendar/activities/ManageEventTypesActivity.kt | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/activities/ManageEventTypesActivity.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/activities/ManageEventTypesActivity.kt index 9b43a4cd1..36e060e94 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/activities/ManageEventTypesActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/activities/ManageEventTypesActivity.kt @@ -34,17 +34,13 @@ class ManageEventTypesActivity : SimpleActivity(), DeleteItemsListener { private fun getEventTypes() { DBHelper.newInstance(applicationContext).getEventTypes { runOnUiThread { - gotEventTypes(it) + manage_event_types_list.adapter = EventTypeAdapter(this, it, this) { + showEventTypeDialog(it) + } } } } - private fun gotEventTypes(eventTypes: List) { - manage_event_types_list.adapter = EventTypeAdapter(this, eventTypes, this) { - showEventTypeDialog(it) - } - } - override fun deleteItems(ids: ArrayList) { if (ids.contains(DBHelper.REGULAR_EVENT_TYPE_ID)) { toast(R.string.cannot_delete_default_type)