From: Damyan Ivanov Date: Sun, 22 Dec 2019 12:25:05 +0000 (+0200) Subject: drop unused class X-Git-Tag: v0.12.0~119 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=eb1405b50ae6531cd2d2c5d141ed087d6241e8e8;p=mobile-ledger.git drop unused class --- diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/account_summary/AccountSummaryViewModel.java b/app/src/main/java/net/ktnx/mobileledger/ui/account_summary/AccountSummaryViewModel.java index 45a088cc..d7f4c616 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/account_summary/AccountSummaryViewModel.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/account_summary/AccountSummaryViewModel.java @@ -19,15 +19,14 @@ package net.ktnx.mobileledger.ui.account_summary; import android.os.AsyncTask; -import net.ktnx.mobileledger.async.CommitAccountsTask; +import androidx.lifecycle.ViewModel; + import net.ktnx.mobileledger.async.UpdateAccountsTask; import net.ktnx.mobileledger.model.Data; import net.ktnx.mobileledger.model.LedgerAccount; import java.util.ArrayList; -import androidx.lifecycle.ViewModel; - import static net.ktnx.mobileledger.utils.Logger.debug; public class AccountSummaryViewModel extends ViewModel { @@ -50,15 +49,5 @@ public class AccountSummaryViewModel extends ViewModel { } } - private static class CAT extends CommitAccountsTask { - @Override - protected void onPostExecute(ArrayList list) { - super.onPostExecute(list); - if (list != null) { - debug("acc", "setting new account list"); - Data.accounts.setList(list); - } - } - } }