Skip to content

Commit 75fad3a

Browse files
authored
GN: remove dead code in proto_library. (#3790)
`proto_library` users never set `use_protobuf_full`. `//gn:protobuf_full` is only explicitly add do `deps` for specific build targets. This is a follow-up to 58f55df.
1 parent 6e5137c commit 75fad3a

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

gn/standalone/proto_library.gni

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -289,11 +289,7 @@ template("proto_library") {
289289
configs += [ ":$config_name" ]
290290
}
291291

292-
# Use protobuf_full only for tests.
293-
if (defined(invoker.use_protobuf_full) &&
294-
invoker.use_protobuf_full == true) {
295-
deps = [ "//gn:protobuf_full" ]
296-
} else if (generate_cc) {
292+
if (generate_cc) {
297293
deps = [ "//gn:protobuf_lite" ]
298294
} else {
299295
deps = []

0 commit comments

Comments
 (0)