Skip to content

Commit 89c274a

Browse files
committed
Remove unnecessary code
1 parent f3f286c commit 89c274a

10 files changed

+3
-137
lines changed

src/Microsoft.OpenApi/Models/References/OpenApiCallbackReference.cs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -88,20 +88,6 @@ public override void SerializeAsV31(IOpenApiWriter writer)
8888
}
8989
}
9090

91-
/// <inheritdoc/>
92-
public override void SerializeAsV3WithoutReference(IOpenApiWriter writer)
93-
{
94-
SerializeInternalWithoutReference(writer, OpenApiSpecVersion.OpenApi3_0,
95-
(writer, element) => element.SerializeAsV3(writer));
96-
}
97-
98-
/// <inheritdoc/>
99-
public override void SerializeAsV31WithoutReference(IOpenApiWriter writer)
100-
{
101-
SerializeInternalWithoutReference(writer, OpenApiSpecVersion.OpenApi3_1,
102-
(writer, element) => element.SerializeAsV31(writer));
103-
}
104-
10591
/// <inheritdoc/>
10692
private void SerializeInternal(IOpenApiWriter writer,
10793
Action<IOpenApiWriter, IOpenApiReferenceable> action)

src/Microsoft.OpenApi/Models/References/OpenApiExampleReference.cs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -107,18 +107,6 @@ public override void SerializeAsV31(IOpenApiWriter writer)
107107
}
108108
}
109109

110-
/// <inheritdoc/>
111-
public override void SerializeAsV3WithoutReference(IOpenApiWriter writer)
112-
{
113-
SerializeInternalWithoutReference(writer, OpenApiSpecVersion.OpenApi3_0);
114-
}
115-
116-
/// <inheritdoc/>
117-
public override void SerializeAsV31WithoutReference(IOpenApiWriter writer)
118-
{
119-
SerializeInternalWithoutReference(writer, OpenApiSpecVersion.OpenApi3_1);
120-
}
121-
122110
/// <inheritdoc/>
123111
private void SerializeInternal(IOpenApiWriter writer,
124112
Action<IOpenApiWriter, IOpenApiReferenceable> action)

src/Microsoft.OpenApi/Models/References/OpenApiHeaderReference.cs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -124,20 +124,6 @@ public override void SerializeAsV3(IOpenApiWriter writer)
124124
}
125125
}
126126

127-
/// <inheritdoc/>
128-
public override void SerializeAsV31WithoutReference(IOpenApiWriter writer)
129-
{
130-
SerializeInternalWithoutReference(writer, OpenApiSpecVersion.OpenApi3_1,
131-
(writer, element) => element.SerializeAsV31(writer));
132-
}
133-
134-
/// <inheritdoc/>
135-
public override void SerializeAsV3WithoutReference(IOpenApiWriter writer)
136-
{
137-
SerializeInternalWithoutReference(writer, OpenApiSpecVersion.OpenApi3_0,
138-
(writer, element) => element.SerializeAsV3(writer));
139-
}
140-
141127
/// <inheritdoc/>
142128
private void SerializeInternal(IOpenApiWriter writer,
143129
Action<IOpenApiWriter, IOpenApiReferenceable> action)

src/Microsoft.OpenApi/Models/References/OpenApiLinkReference.cs

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -105,19 +105,7 @@ public override void SerializeAsV31(IOpenApiWriter writer)
105105
{
106106
SerializeInternal(writer, (writer, element) => element.SerializeAsV31WithoutReference(writer));
107107
}
108-
}
109-
110-
/// <inheritdoc/>
111-
public override void SerializeAsV3WithoutReference(IOpenApiWriter writer)
112-
{
113-
SerializeInternalWithoutReference(writer, (writer, element) => element.SerializeAsV3(writer));
114-
}
115-
116-
/// <inheritdoc/>
117-
public override void SerializeAsV31WithoutReference(IOpenApiWriter writer)
118-
{
119-
SerializeInternalWithoutReference(writer, (writer, element) => element.SerializeAsV31(writer));
120-
}
108+
}
121109

122110
/// <inheritdoc/>
123111
private void SerializeInternal(IOpenApiWriter writer,

src/Microsoft.OpenApi/Models/References/OpenApiParameterReference.cs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -140,20 +140,6 @@ public override void SerializeAsV31(IOpenApiWriter writer)
140140
}
141141
}
142142

143-
/// <inheritdoc/>
144-
public override void SerializeAsV3WithoutReference(IOpenApiWriter writer)
145-
{
146-
SerializeInternalWithoutReference(writer, OpenApiSpecVersion.OpenApi3_0,
147-
(writer, element) => element.SerializeAsV3(writer));
148-
}
149-
150-
/// <inheritdoc/>
151-
public override void SerializeAsV31WithoutReference(IOpenApiWriter writer)
152-
{
153-
SerializeInternalWithoutReference(writer, OpenApiSpecVersion.OpenApi3_1,
154-
(writer, element) => element.SerializeAsV31(writer));
155-
}
156-
157143
/// <inheritdoc/>
158144
private void SerializeInternal(IOpenApiWriter writer,
159145
Action<IOpenApiWriter, IOpenApiReferenceable> action)

src/Microsoft.OpenApi/Models/References/OpenApiPathItemReference.cs

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -107,19 +107,7 @@ public override void SerializeAsV31(IOpenApiWriter writer)
107107
{
108108
SerializeInternal(writer, (writer, element) => element.SerializeAsV31WithoutReference(writer));
109109
}
110-
}
111-
112-
/// <inheritdoc/>
113-
public override void SerializeAsV3WithoutReference(IOpenApiWriter writer)
114-
{
115-
SerializeInternalWithoutReference(writer, OpenApiSpecVersion.OpenApi3_0, (writer, element) => element.SerializeAsV3(writer));
116-
}
117-
118-
/// <inheritdoc/>
119-
public override void SerializeAsV31WithoutReference(IOpenApiWriter writer)
120-
{
121-
SerializeInternalWithoutReference(writer, OpenApiSpecVersion.OpenApi3_1, (writer, element) => element.SerializeAsV31(writer));
122-
}
110+
}
123111

124112
/// <inheritdoc/>
125113
private void SerializeInternal(IOpenApiWriter writer,

src/Microsoft.OpenApi/Models/References/OpenApiRequestBodyReference.cs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -98,20 +98,6 @@ public override void SerializeAsV31(IOpenApiWriter writer)
9898
}
9999
}
100100

101-
/// <inheritdoc/>
102-
public override void SerializeAsV3WithoutReference(IOpenApiWriter writer)
103-
{
104-
SerializeInternalWithoutReference(writer, OpenApiSpecVersion.OpenApi3_0,
105-
(writer, element) => element.SerializeAsV3(writer));
106-
}
107-
108-
/// <inheritdoc/>
109-
public override void SerializeAsV31WithoutReference(IOpenApiWriter writer)
110-
{
111-
SerializeInternalWithoutReference(writer, OpenApiSpecVersion.OpenApi3_1,
112-
(writer, element) => element.SerializeAsV31(writer));
113-
}
114-
115101
/// <inheritdoc/>
116102
private void SerializeInternal(IOpenApiWriter writer,
117103
Action<IOpenApiWriter, IOpenApiReferenceable> action)

src/Microsoft.OpenApi/Models/References/OpenApiResponseReference.cs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -101,20 +101,6 @@ public override void SerializeAsV31(IOpenApiWriter writer)
101101
}
102102
}
103103

104-
/// <inheritdoc/>
105-
public override void SerializeAsV3WithoutReference(IOpenApiWriter writer)
106-
{
107-
SerializeInternalWithoutReference(writer, OpenApiSpecVersion.OpenApi3_0,
108-
(writer, element) => element.SerializeAsV3(writer));
109-
}
110-
111-
/// <inheritdoc/>
112-
public override void SerializeAsV31WithoutReference(IOpenApiWriter writer)
113-
{
114-
SerializeInternalWithoutReference(writer, OpenApiSpecVersion.OpenApi3_1,
115-
(writer, element) => element.SerializeAsV31(writer));
116-
}
117-
118104
/// <inheritdoc/>
119105
private void SerializeInternal(IOpenApiWriter writer,
120106
Action<IOpenApiWriter, IOpenApiReferenceable> action)

src/Microsoft.OpenApi/Models/References/OpenApiSecuritySchemeReference.cs

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -107,21 +107,7 @@ public override void SerializeAsV31(IOpenApiWriter writer)
107107
{
108108
SerializeInternal(writer, SerializeAsV31WithoutReference);
109109
}
110-
}
111-
112-
/// <inheritdoc/>
113-
public override void SerializeAsV3WithoutReference(IOpenApiWriter writer)
114-
{
115-
SerializeInternalWithoutReference(writer, OpenApiSpecVersion.OpenApi3_0,
116-
(writer, element) => element.SerializeAsV3(writer));
117-
}
118-
119-
/// <inheritdoc/>
120-
public override void SerializeAsV31WithoutReference(IOpenApiWriter writer)
121-
{
122-
SerializeInternalWithoutReference(writer, OpenApiSpecVersion.OpenApi3_1,
123-
(writer, element) => element.SerializeAsV31(writer));
124-
}
110+
}
125111

126112
/// <inheritdoc/>
127113
private void SerializeInternal(IOpenApiWriter writer,

src/Microsoft.OpenApi/Models/References/OpenApiTagReference.cs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -92,20 +92,6 @@ public override void SerializeAsV31(IOpenApiWriter writer)
9292
}
9393
}
9494

95-
/// <inheritdoc/>
96-
public override void SerializeAsV3WithoutReference(IOpenApiWriter writer)
97-
{
98-
SerializeInternalWithoutReference(writer, OpenApiSpecVersion.OpenApi3_0,
99-
(writer, element) => element.SerializeAsV3(writer));
100-
}
101-
102-
/// <inheritdoc/>
103-
public override void SerializeAsV31WithoutReference(IOpenApiWriter writer)
104-
{
105-
SerializeInternalWithoutReference(writer, OpenApiSpecVersion.OpenApi3_1,
106-
(writer, element) => element.SerializeAsV31(writer));
107-
}
108-
10995
/// <inheritdoc/>
11096
private void SerializeInternal(IOpenApiWriter writer)
11197
{

0 commit comments

Comments
 (0)