]> git.ktnx.net Git - mobile-ledger.git/commitdiff
drop unused class
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Sun, 22 Dec 2019 12:25:05 +0000 (14:25 +0200)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Sun, 22 Dec 2019 12:25:05 +0000 (14:25 +0200)
app/src/main/java/net/ktnx/mobileledger/ui/account_summary/AccountSummaryViewModel.java

index 45a088cc71fbd04e8925c25b0ea0a6cfc6e65089..d7f4c616d75b9b65fe8756aa73c2003460fe6a8c 100644 (file)
@@ -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<LedgerAccount> list) {
-            super.onPostExecute(list);
-            if (list != null) {
-                debug("acc", "setting new account list");
-                Data.accounts.setList(list);
-            }
-        }
-    }
 }