]> git.ktnx.net Git - mobile-ledger.git/commitdiff
drop unused method
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Fri, 29 Mar 2019 17:51:59 +0000 (19:51 +0200)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Fri, 29 Mar 2019 17:51:59 +0000 (19:51 +0200)
app/src/main/java/net/ktnx/mobileledger/ui/transaction_list/TransactionListViewModel.java

index 7e0214c1f909795ff23627a2e9a04c0a06917ffb..6e20f65221bf39409f4f406432bc40139deb3845 100644 (file)
@@ -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<TransactionListItem> transactions = Data.transactions.get();
-        if (transactions == null) return 0;
-        return transactions.size();
-    }
     private static class UTT extends UpdateTransactionsTask {
         @Override
         protected void onPostExecute(String error) {