From 2bc496562e933bad3a00c23b2af34e858701f080 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Tue, 10 Nov 2020 17:18:40 +0400 Subject: [PATCH] removed submitList with callback --- .../touchin/adapters/DelegationListAdapter.kt | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/recyclerview-adapters/src/main/java/ru/touchin/adapters/DelegationListAdapter.kt b/recyclerview-adapters/src/main/java/ru/touchin/adapters/DelegationListAdapter.kt index d4d54ce..7c8317c 100644 --- a/recyclerview-adapters/src/main/java/ru/touchin/adapters/DelegationListAdapter.kt +++ b/recyclerview-adapters/src/main/java/ru/touchin/adapters/DelegationListAdapter.kt @@ -71,24 +71,6 @@ open class DelegationListAdapter(config: AsyncDifferConfig) : Recy */ fun submitList(list: List?) = differ.submitList(list) - /** - * Pass a new List to the AdapterHelper. Adapter updates will be computed on a background - * thread. - *

- * If a List is already present, a diff will be computed asynchronously on a background thread. - * When the diff is computed, it will be applied (dispatched to the {@link ListUpdateCallback}), - * and the new List will be swapped in. - *

- * The commit callback can be used to know when the List is committed, but note that it - * may not be executed. If List B is submitted immediately after List A, and is - * committed directly, the callback associated with List A will not be run. - * - * @param newList The new List. - * @param commitCallback Optional runnable that is executed when the List is committed, if - * it is committed. - */ - fun submitList(list: List, commitCallback: () -> Unit) = differ.submitList(list, commitCallback) - /** * Same as [submitList] with fast simple remove all items of a previous list */