From 13cdbbfd0d04c3f3e31c313641dc66e5fac7f126 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Fri, 29 Mar 2019 19:51:59 +0200 Subject: [PATCH] drop unused method --- .../ui/transaction_list/TransactionListViewModel.java | 7 ------- 1 file changed, 7 deletions(-) diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/transaction_list/TransactionListViewModel.java b/app/src/main/java/net/ktnx/mobileledger/ui/transaction_list/TransactionListViewModel.java index 7e0214c1..6e20f652 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/transaction_list/TransactionListViewModel.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/transaction_list/TransactionListViewModel.java @@ -24,8 +24,6 @@ import net.ktnx.mobileledger.model.Data; import net.ktnx.mobileledger.model.TransactionListItem; import net.ktnx.mobileledger.utils.ObservableValue; -import java.util.List; - import androidx.lifecycle.ViewModel; public class TransactionListViewModel extends ViewModel { @@ -47,11 +45,6 @@ public class TransactionListViewModel extends ViewModel { return Data.transactions.get(position); } } - public static int getTransactionCount() { - List transactions = Data.transactions.get(); - if (transactions == null) return 0; - return transactions.size(); - } private static class UTT extends UpdateTransactionsTask { @Override protected void onPostExecute(String error) { -- 2.39.5