Delete IDLOptions::lang (#6841)

Co-authored-by: Casper Neo <cneo@google.com>
This commit is contained in:
Casper
2021-09-13 18:18:00 -04:00
committed by GitHub
parent 47d35f1053
commit 0a3b017f09
6 changed files with 18 additions and 22 deletions

View File

@@ -616,8 +616,6 @@ struct IDLOptions {
kMAX
};
Language lang;
enum MiniReflect { kNone, kTypes, kTypesAndNames };
MiniReflect mini_reflect;
@@ -681,7 +679,6 @@ struct IDLOptions {
filename_extension(),
no_warnings(false),
project_root(""),
lang(IDLOptions::kJava),
mini_reflect(IDLOptions::kNone),
require_explicit_ids(false),
lang_to_generate(0),
@@ -1162,9 +1159,10 @@ extern std::string RustMakeRule(const Parser &parser, const std::string &path,
// Generate a make rule for generated Java or C# files.
// See code_generators.cpp.
extern std::string JavaCSharpMakeRule(const Parser &parser,
const std::string &path,
const std::string &file_name);
extern std::string CSharpMakeRule(const Parser &parser, const std::string &path,
const std::string &file_name);
extern std::string JavaMakeRule(const Parser &parser, const std::string &path,
const std::string &file_name);
// Generate a make rule for the generated text (JSON) files.
// See idl_gen_text.cpp.