Skip to content

Commit f80390a

Browse files
committed
code cleanup - skip eSTS telemetry
1 parent aae4bb6 commit f80390a

26 files changed

Lines changed: 0 additions & 1534 deletions

common/src/androidTest/java/com/microsoft/identity/common/CommandDispatcherTest.java

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -747,11 +747,6 @@ public ExceptionCommand(@NonNull final CommandParameters parameters,
747747
public String execute() {
748748
throw new RuntimeException("An unexpected exception!");
749749
}
750-
751-
@Override
752-
public boolean isEligibleForEstsTelemetry() {
753-
return false;
754-
}
755750
}
756751

757752
static class CommandThrowingIErrorInformationException extends BaseCommand<String> {
@@ -767,11 +762,6 @@ public CommandThrowingIErrorInformationException(@NonNull final CommandParameter
767762
public String execute() {
768763
throw new TerminalException("An unexpected exception!", new Exception("Exception"), mErrorCode);
769764
}
770-
771-
@Override
772-
public boolean isEligibleForEstsTelemetry() {
773-
return false;
774-
}
775765
}
776766

777767

@@ -794,11 +784,6 @@ public boolean isEligibleForCaching() {
794784
return true;
795785
}
796786

797-
@Override
798-
public boolean isEligibleForEstsTelemetry() {
799-
return false;
800-
}
801-
802787
@Override
803788
public boolean equals(Object o) {
804789
if (this == o) return true;
@@ -892,11 +877,6 @@ public AcquireTokenResult execute() {
892877
return result;
893878
}
894879

895-
@Override
896-
public boolean isEligibleForEstsTelemetry() {
897-
return false;
898-
}
899-
900880
@Override
901881
public boolean equals(Object o) {
902882
if (this == o) return true;
@@ -919,11 +899,6 @@ public Object execute() throws Exception {
919899
Thread.sleep(10000);
920900
return null;
921901
}
922-
923-
@Override
924-
public boolean isEligibleForEstsTelemetry() {
925-
return false;
926-
}
927902
}
928903
private static BaseController getTestController() {
929904
return new TestBaseController() {

common/src/main/java/com/microsoft/identity/common/internal/commands/Command.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@
2727
public interface Command<T> {
2828
T execute() throws Exception;
2929

30-
boolean isEligibleForEstsTelemetry();
31-
3230
BaseController getDefaultController();
3331

3432
boolean isEligibleForCaching();

common/src/main/java/com/microsoft/identity/common/internal/commands/GenerateShrCommand.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,4 @@ public GenerateShrResult execute() throws Exception {
123123

124124
return result;
125125
}
126-
127-
@Override
128-
public boolean isEligibleForEstsTelemetry() {
129-
// There is no web service interaction in this flow.
130-
return false;
131-
}
132126
}

common/src/main/java/com/microsoft/identity/common/internal/commands/GetCurrentAccountCommand.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,4 @@ public List<ICacheRecord> execute() throws Exception {
7373

7474
return result;
7575
}
76-
77-
@Override
78-
public boolean isEligibleForEstsTelemetry() {
79-
return true;
80-
}
8176
}

common/src/main/java/com/microsoft/identity/common/internal/commands/GetDeviceModeCommand.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,4 @@ public GetDeviceModeCommand(@NonNull CommandParameters parameters,
5353
public Boolean execute() throws Exception {
5454
return getControllerFactory().getDefaultController().getDeviceMode(getParameters());
5555
}
56-
57-
@Override
58-
public boolean isEligibleForEstsTelemetry() {
59-
return false;
60-
}
6156
}

common/src/main/java/com/microsoft/identity/common/internal/commands/GetPreferredAuthMethodFromAuthenticator.kt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,4 @@ class GetPreferredAuthMethodFromAuthenticator(
4444
override fun execute(): PreferredAuthMethod {
4545
return controllerFactory.getDefaultController().preferredAuthMethod
4646
}
47-
48-
override fun isEligibleForEstsTelemetry(): Boolean {
49-
return false
50-
}
5147
}

common/src/main/java/com/microsoft/identity/common/internal/commands/LoadAccountCommand.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,4 @@ public List<ICacheRecord> execute() throws Exception {
7373

7474
return result;
7575
}
76-
77-
@Override
78-
public boolean isEligibleForEstsTelemetry() {
79-
return true;
80-
}
8176
}

common/src/main/java/com/microsoft/identity/common/internal/commands/RefreshOnCommand.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,6 @@ public VoidResult execute() throws IOException, ClientException, ServiceExceptio
6969
return new VoidResult();
7070
}
7171

72-
@Override
73-
public boolean isEligibleForEstsTelemetry() {
74-
return false;
75-
}
76-
7772
@Override
7873
public boolean isEligibleForCaching() {
7974
return false;

common/src/main/java/com/microsoft/identity/common/internal/commands/RemoveAccountCommand.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,4 @@ public Boolean execute() throws Exception {
7171

7272
return result;
7373
}
74-
75-
@Override
76-
public boolean isEligibleForEstsTelemetry() {
77-
return true;
78-
}
7974
}

common/src/main/java/com/microsoft/identity/common/internal/commands/RemoveCurrentAccountCommand.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,4 @@ public Boolean execute() throws Exception {
7272

7373
return false;
7474
}
75-
76-
@Override
77-
public boolean isEligibleForEstsTelemetry() {
78-
return true;
79-
}
8075
}

0 commit comments

Comments
 (0)