Skip to content

Commit 858e0e7

Browse files
author
Varun Rathore
committed
implementation of fetch , cache and load of template
1 parent 6ff4df7 commit 858e0e7

File tree

7 files changed

+0
-505
lines changed

7 files changed

+0
-505
lines changed

src/main/java/com/google/firebase/remoteconfig/CustomSignalCondition.java

Lines changed: 0 additions & 141 deletions
This file was deleted.

src/main/java/com/google/firebase/remoteconfig/CustomSignalOperator.java

Lines changed: 0 additions & 54 deletions
This file was deleted.

src/main/java/com/google/firebase/remoteconfig/MicroPercentRange.java

Lines changed: 0 additions & 50 deletions
This file was deleted.

src/main/java/com/google/firebase/remoteconfig/OneOfCondition.java

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@
2626
class OneOfCondition {
2727
private OrCondition orCondition;
2828
private AndCondition andCondition;
29-
private PercentCondition percent;
30-
private CustomSignalCondition customSignal;
3129
private String trueValue;
3230
private String falseValue;
3331

@@ -38,21 +36,12 @@ class OneOfCondition {
3836
if (oneOfconditionResponse.getAndCondition() != null) {
3937
this.andCondition = new AndCondition(oneOfconditionResponse.getAndCondition());
4038
}
41-
if (oneOfconditionResponse.getPercentCondition() != null) {
42-
this.percent = new PercentCondition(oneOfconditionResponse.getPercentCondition());
43-
}
44-
if (oneOfconditionResponse.getCustomSignalCondition() != null) {
45-
this.customSignal =
46-
new CustomSignalCondition(oneOfconditionResponse.getCustomSignalCondition());
47-
}
4839
}
4940

5041
@VisibleForTesting
5142
OneOfCondition() {
5243
this.orCondition = null;
5344
this.andCondition = null;
54-
this.percent = null;
55-
this.customSignal = null;
5645
this.trueValue = null;
5746
this.falseValue = null;
5847
}
@@ -77,16 +66,6 @@ String isFalse() {
7766
return falseValue;
7867
}
7968

80-
@Nullable
81-
PercentCondition getPercent() {
82-
return percent;
83-
}
84-
85-
@Nullable
86-
CustomSignalCondition getCustomSignal() {
87-
return customSignal;
88-
}
89-
9069
OneOfCondition setOrCondition(@NonNull OrCondition orCondition) {
9170
checkNotNull(orCondition, "`Or` condition cannot be set to null.");
9271
this.orCondition = orCondition;
@@ -99,18 +78,6 @@ OneOfCondition setAndCondition(@NonNull AndCondition andCondition) {
9978
return this;
10079
}
10180

102-
OneOfCondition setPercent(@NonNull PercentCondition percent) {
103-
checkNotNull(percent, "`Percent` condition cannot be set to null.");
104-
this.percent = percent;
105-
return this;
106-
}
107-
108-
OneOfCondition setCustomSignal(@NonNull CustomSignalCondition customSignal) {
109-
checkNotNull(customSignal, "`Custom signal` condition cannot be set to null.");
110-
this.customSignal = customSignal;
111-
return this;
112-
}
113-
11481
OneOfCondition setTrue() {
11582
this.trueValue = "true";
11683
return this;
@@ -129,12 +96,6 @@ OneOfConditionResponse toOneOfConditionResponse() {
12996
if (this.orCondition != null) {
13097
oneOfConditionResponse.setOrCondition(this.orCondition.toOrConditionResponse());
13198
}
132-
if (this.percent != null) {
133-
oneOfConditionResponse.setPercentCondition(this.percent.toPercentConditionResponse());
134-
}
135-
if (this.customSignal != null) {
136-
oneOfConditionResponse.setCustomSignalCondition(this.customSignal.toCustomConditonResponse());
137-
}
13899
return oneOfConditionResponse;
139100
}
140101
}

0 commit comments

Comments
 (0)