From 563e64989b80fb5081e8c487e20554b87cb481a8 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Mon, 8 Feb 2021 05:52:53 +0000 Subject: [PATCH] drop unused method --- .../ui/templates/TemplateDetailsAdapter.java | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/templates/TemplateDetailsAdapter.java b/app/src/main/java/net/ktnx/mobileledger/ui/templates/TemplateDetailsAdapter.java index 297fa73e..8b897b21 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/templates/TemplateDetailsAdapter.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/templates/TemplateDetailsAdapter.java @@ -38,7 +38,6 @@ import net.ktnx.mobileledger.R; import net.ktnx.mobileledger.databinding.TemplateDetailsAccountBinding; import net.ktnx.mobileledger.databinding.TemplateDetailsHeaderBinding; import net.ktnx.mobileledger.db.AccountAutocompleteAdapter; -import net.ktnx.mobileledger.db.TemplateBase; import net.ktnx.mobileledger.model.Data; import net.ktnx.mobileledger.model.TemplateDetailsItem; import net.ktnx.mobileledger.ui.QRScanCapableFragment; @@ -49,7 +48,6 @@ import net.ktnx.mobileledger.utils.Misc; import org.jetbrains.annotations.NotNull; import java.text.ParseException; -import java.util.ArrayList; import java.util.List; import java.util.Locale; import java.util.regex.Matcher; @@ -243,14 +241,6 @@ class TemplateDetailsAdapter extends RecyclerView.Adapter items) { - ArrayList list = new ArrayList<>(); - for (TemplateBase p : items) { - TemplateDetailsItem item = TemplateDetailsItem.fromRoomObject(p); - list.add(item); - } - setItems(list); - } public void setItems(List items) { differ.submitList(items); } -- 2.39.5