Skip to content

Commit 928f447

Browse files
committed
remove --proto validation check as it seems outdated.
1 parent dc8799d commit 928f447

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/flatc.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -768,11 +768,8 @@ void FlatCompiler::ValidateOptions(const FlatCOptions &options) {
768768

769769
if (!options.filenames.size()) Error("missing input files", false, true);
770770

771-
if (opts.proto_mode) {
772-
if (options.any_generator)
773-
Error("cannot generate code directly from .proto files", true);
774-
} else if (!options.any_generator && options.conform_to_schema.empty() &&
775-
options.annotate_schema.empty()) {
771+
if (!options.any_generator && options.conform_to_schema.empty() &&
772+
options.annotate_schema.empty()) {
776773
Error("no options: specify at least one generator.", true);
777774
}
778775

0 commit comments

Comments
 (0)