Sho SHIMIZU
Committed by Brian O'Connor

Remove classes that are no longer used

Change-Id: Idb5cfdadf9e6062b59500200a551ed5deaa362d7
...@@ -520,52 +520,6 @@ public class IntentManager ...@@ -520,52 +520,6 @@ public class IntentManager
520 } 520 }
521 } 521 }
522 522
523 - // TODO: better naming
524 - private class WithdrawStateChange1 implements CompletedIntentUpdate {
525 -
526 - private final Intent intent;
527 -
528 - WithdrawStateChange1(Intent intent) {
529 - this.intent = checkNotNull(intent);
530 - }
531 -
532 - @Override
533 - public void writeBeforeExecution(BatchWrite batchWrite) {
534 - batchWrite.setState(intent, WITHDRAW_REQ);
535 - }
536 -
537 - @Override
538 - public void writeAfterExecution(BatchWrite batchWrite) {
539 - batchWrite.setState(intent, WITHDRAWN);
540 - batchWrite.removeInstalledIntents(intent.id());
541 - batchWrite.removeIntent(intent.id());
542 - }
543 - }
544 -
545 - // TODO: better naming
546 - private class WithdrawStateChange2 implements CompletedIntentUpdate {
547 -
548 - private final Intent intent;
549 -
550 - WithdrawStateChange2(Intent intent) {
551 - this.intent = checkNotNull(intent);
552 - }
553 -
554 - @Override
555 - public void writeBeforeExecution(BatchWrite batchWrite) {
556 - // TODO consider only "creating" intent if it does not exist
557 - // Note: We need to set state to INSTALL_REQ regardless.
558 - batchWrite.createIntent(intent);
559 - }
560 -
561 - @Override
562 - public void writeAfterExecution(BatchWrite batchWrite) {
563 - batchWrite.setState(intent, WITHDRAWN);
564 - batchWrite.removeInstalledIntents(intent.id());
565 - batchWrite.removeIntent(intent.id());
566 - }
567 - }
568 -
569 private class Compiling implements IntentUpdate { 523 private class Compiling implements IntentUpdate {
570 524
571 private final Intent intent; 525 private final Intent intent;
......