Compare commits

..
Author SHA1 Message Date
Anshul Nigham 4a4e553cd0 Fix unused variable warnings
PiperOrigin-RevId: 1009737741
2026-11-03 09:27:51 -08:00
2 changed files with 0 additions and 2 deletions
-1
View File
@@ -2176,7 +2176,6 @@ class JavaGenerator : public BaseGenerator {
if (field.deprecated) continue;
if (field.value.type.base_type == BASE_TYPE_UTYPE) continue;
if (field.value.type.element == BASE_TYPE_UTYPE) continue;
const auto get_field = namer_.Method("get", field);
code += " this." + namer_.Field(field) + " = ";
const auto type_name =
-1
View File
@@ -1141,7 +1141,6 @@ class SwiftGenerator : public BaseGenerator {
it != struct_def.fields.vec.end(); ++it) {
const auto& field = **it;
if (field.deprecated) continue;
const auto offset = NumToString(field.value.offset);
code_.SetValue("FIELDVAR", namer_.Variable(field));
code_.SetValue("VALUETYPE", GenerateVerifierType(field));