From eb1405b50ae6531cd2d2c5d141ed087d6241e8e8 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Sun, 22 Dec 2019 14:25:05 +0200 Subject: [PATCH] drop unused class --- .../account_summary/AccountSummaryViewModel.java | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) 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); - } - } - } } -- 2.39.5