Skip to content

Commit ce375c5

Browse files
ctillerpaulosjca
authored andcommitted
[channelz] Remove Json serialization from If
PiperOrigin-RevId: 777746478
1 parent 02bb839 commit ce375c5

File tree

1 file changed

+0
-13
lines changed
  • src/core/lib/promise

1 file changed

+0
-13
lines changed

src/core/lib/promise/if.h

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -219,19 +219,6 @@ class If<bool, T, F> {
219219
}
220220
}
221221

222-
Json ToJson() const {
223-
Json::Object json;
224-
json["condition"] = Json::FromBool(condition_);
225-
json["true"] = Json::FromString(std::string(TypeName<TruePromise>()));
226-
json["false"] = Json::FromString(std::string(TypeName<FalsePromise>()));
227-
if (condition_) {
228-
json["promise"] = if_true_.ToJson();
229-
} else {
230-
json["promise"] = if_false_.ToJson();
231-
}
232-
return Json::FromObject(std::move(json));
233-
}
234-
235222
void ToProto(grpc_channelz_v2_Promise* promise_proto,
236223
upb_Arena* arena) const {
237224
auto* if_proto =

0 commit comments

Comments
 (0)