From: Damyan Ivanov Date: Fri, 29 Mar 2019 17:51:59 +0000 (+0200) Subject: drop unused method X-Git-Tag: v0.9~27 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=13cdbbfd0d04c3f3e31c313641dc66e5fac7f126;p=mobile-ledger.git drop unused method --- 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) {