mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-16 09:12:22 +00:00
Remove unused variables (#5382)
- Fix GenerateTextFromTable (aliasing typo) - Fix unused variable in idl_gen_dart.cpp - Fix std::string passing (should be non-const value or const-reference) - Remove unused variables
This commit is contained in:
committed by
Wouter van Oortmerssen
parent
7d7d796cd0
commit
7a63792929
@@ -188,7 +188,7 @@ class GoGenerator : public BaseGenerator {
|
||||
}
|
||||
|
||||
// A single enum name member.
|
||||
void EnumNameMember(const EnumDef &enum_def, const EnumVal ev,
|
||||
void EnumNameMember(const EnumDef &enum_def, const EnumVal &ev,
|
||||
size_t max_name_length, std::string *code_ptr) {
|
||||
std::string &code = *code_ptr;
|
||||
code += "\t";
|
||||
@@ -228,7 +228,7 @@ class GoGenerator : public BaseGenerator {
|
||||
}
|
||||
|
||||
// A single enum value member.
|
||||
void EnumValueMember(const EnumDef &enum_def, const EnumVal ev,
|
||||
void EnumValueMember(const EnumDef &enum_def, const EnumVal &ev,
|
||||
size_t max_name_length, std::string *code_ptr) {
|
||||
std::string &code = *code_ptr;
|
||||
code += "\t\"";
|
||||
@@ -895,7 +895,7 @@ class GoGenerator : public BaseGenerator {
|
||||
EndBuilderBody(code_ptr);
|
||||
}
|
||||
// Begin by declaring namespace and imports.
|
||||
void BeginFile(const std::string name_space_name, const bool needs_imports,
|
||||
void BeginFile(const std::string &name_space_name, const bool needs_imports,
|
||||
const bool is_enum, std::string *code_ptr) {
|
||||
std::string &code = *code_ptr;
|
||||
code = code + "// Code generated by the FlatBuffers compiler. DO NOT EDIT.\n\n";
|
||||
|
||||
Reference in New Issue
Block a user