Skip to content

Commit

Permalink
remove unused funciton.
Browse files Browse the repository at this point in the history
  • Loading branch information
RevenantX committed Jul 28, 2015
1 parent 588564d commit 01249c1
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/idl_gen_general.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -271,19 +271,6 @@ static std::string GenOffsetType(const LanguageParameters &lang, const StructDef
}
}

static std::string GenOffsetConstruct(const LanguageParameters &lang,
const Type &type,
const std::string &variable_name)
{
if(lang.language == GeneratorOptions::kCSharp) {
switch(type.base_type) {
case BASE_TYPE_VECTOR: return "new VectorOffset(" + variable_name + ")";
case BASE_TYPE_STRING: return "new StringOffset(" + variable_name + ")";
}
}
return variable_name;
}

static std::string GenOffsetConstruct(const LanguageParameters &lang,
const StructDef &struct_def,
const std::string &variable_name)
Expand Down

0 comments on commit 01249c1

Please sign in to comment.