0

MojoLPM: Remove InterfaceKind proto import requirement.

This should trim the imports in the generated MojoLPM protobuf files
down slightly and prevent the unused-import warnings.

Bug: 1323277
Change-Id: I20b65eef11523a444744a977c0e3767b8731b66d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3683161
Reviewed-by: Oksana Zhuravlova <oksamyt@chromium.org>
Commit-Queue: Mark Brand <markbrand@google.com>
Cr-Commit-Position: refs/heads/main@{#1012569}
This commit is contained in:
Mark Brand
2022-06-09 17:17:26 +00:00
committed by Chromium LUCI CQ
parent 149335fea2
commit 6dca08a464

@ -128,7 +128,7 @@ class Generator(CppGenerator):
AddKind(kind.key_kind)
AddKind(kind.value_kind)
elif (mojom.IsStructKind(kind) or mojom.IsUnionKind(kind)
or mojom.IsEnumKind(kind) or mojom.IsInterfaceKind(kind)):
or mojom.IsEnumKind(kind)):
name = self._GetFullMojomNameForKind(kind)
if name in seen_types:
return