remove unnecessary code (#19159)

This commit is contained in:
devhl-labs 2024-07-16 05:59:49 -04:00 committed by GitHub
parent 875fdb50bd
commit c05bedb148
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 0 additions and 7 deletions

View File

@ -208,11 +208,6 @@ public abstract class AbstractCSharpCodegen extends DefaultCodegen {
instantiationTypes.put("array", "List");
instantiationTypes.put("list", "List");
instantiationTypes.put("map", "Dictionary");
this.setSortParamsByRequiredFlag(true);
// do it only on newer libraries to avoid breaking changes
// this.setSortModelPropertiesByRequiredFlag(true);
}
public void setUseCollection(boolean useCollection) {

View File

@ -745,8 +745,6 @@ public class CSharpClientCodegen extends AbstractCSharpCodegen {
if (GENERICHOST.equals(getLibrary())) {
setLibrary(GENERICHOST);
additionalProperties.put("useGenericHost", true);
// all c# libraries should be doing this, but we only do it here to avoid breaking changes
this.setSortModelPropertiesByRequiredFlag(true);
} else if (RESTSHARP.equals(getLibrary())) {
additionalProperties.put("useRestSharp", true);
needsCustomHttpMethod = true;