Remove comment
Also includes the following changes:
Fix a bug in which the dead code pruner throws if users specify J2ObjC proto classes as entry classes.
--
Make skyquery more optimal.
--
MOS_MIGRATED_REVID=103213483
diff --git a/tools/objc/j2objc_dead_code_pruner.py b/tools/objc/j2objc_dead_code_pruner.py
index 2245778..ec1ed85 100755
--- a/tools/objc/j2objc_dead_code_pruner.py
+++ b/tools/objc/j2objc_dead_code_pruner.py
@@ -105,7 +105,12 @@
'j2objc_library rules.')
transpiled_file_name = header_mapping[entry_class]
reachable_files.add(transpiled_file_name)
- current_level_deps = reachability_tree[transpiled_file_name]
+ current_level_deps = []
+ # We need to check if the transpiled file is in the reachability tree
+ # because J2ObjC protos are not analyzed for dead code stripping and
+ # therefore are not in the reachability tree at all.
+ if transpiled_file_name in reachability_tree:
+ current_level_deps = reachability_tree[transpiled_file_name]
while current_level_deps:
next_level_deps = []
for dep in current_level_deps: