Skip to content

Commit 80df0b0

Browse files
authored
[dart-dio] Remove unused code (#8196)
1 parent f0c4fd7 commit 80df0b0

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/DartDioClientCodegen.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ public class DartDioClientCodegen extends DartClientCodegen {
4545
public static final String NULLABLE_FIELDS = "nullableFields";
4646
public static final String DATE_LIBRARY = "dateLibrary";
4747

48-
private static final String IS_FORMAT_JSON = "jsonFormat";
4948
private static final String CLIENT_NAME = "clientName";
5049

5150
private boolean nullableFields = true;
@@ -144,13 +143,6 @@ public String toDefaultValue(Schema schema) {
144143
}
145144
}
146145

147-
@Override
148-
protected void addAdditionPropertiesToCodeGenModel(CodegenModel codegenModel, Schema schema) {
149-
//super.addAdditionPropertiesToCodeGenModel(codegenModel, schema);
150-
codegenModel.additionalPropertiesType = getSchemaType(getAdditionalProperties(schema));
151-
addImport(codegenModel, codegenModel.additionalPropertiesType);
152-
}
153-
154146
@Override
155147
public void processOpts() {
156148
defaultProcessOpts();
@@ -167,8 +159,6 @@ public void processOpts() {
167159
additionalProperties.put(NULLABLE_FIELDS, nullableFields);
168160
}
169161

170-
additionalProperties.put(IS_FORMAT_JSON, true);
171-
172162
if (additionalProperties.containsKey(PUB_LIBRARY)) {
173163
this.setPubLibrary((String) additionalProperties.get(PUB_LIBRARY));
174164
} else {

0 commit comments

Comments
 (0)