Skip to content

Commit adc4b67

Browse files
committed
Remove unused/commented out code
1 parent 50fec01 commit adc4b67

File tree

2 files changed

+0
-47
lines changed

2 files changed

+0
-47
lines changed

src/Microsoft.OpenApi/Extensions/OpenApiTypeMapper.cs

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -218,47 +218,5 @@ internal static string ConvertSchemaValueTypeToString(SchemaValueType value)
218218
_ => throw new NotSupportedException(),
219219
};
220220
}
221-
222-
//internal static string GetValueType(Type type)
223-
//{
224-
// if (type == typeof(string))
225-
// {
226-
// return "string";
227-
// }
228-
// else if (type == typeof(int) || type == typeof(int?))
229-
// {
230-
// return "integer";
231-
// }
232-
// else if (type == typeof(long) || type == typeof(long?))
233-
// {
234-
// return "integer";
235-
// }
236-
// else if (type == typeof(bool) || type == typeof(bool?))
237-
// {
238-
// return "bool";
239-
// }
240-
// else if (type == typeof(float) || type == typeof(float?))
241-
// {
242-
// return "float";
243-
// }
244-
// else if (type == typeof(double) || type == typeof(double?))
245-
// {
246-
// return "double";
247-
// }
248-
// else if (type == typeof(decimal) || type == typeof(decimal?))
249-
// {
250-
// return "decimal";
251-
// }
252-
// else if (type == typeof(DateTime) || type == typeof(DateTime?))
253-
// {
254-
// return "date-time";
255-
// }
256-
// else if (type == typeof(DateTimeOffset) || type == typeof(DateTimeOffset?))
257-
// {
258-
// return "date-time";
259-
// }
260-
261-
// return null;
262-
//}
263221
}
264222
}

src/Microsoft.OpenApi/Models/OpenApiComponents.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,6 @@ public class OpenApiComponents : IOpenApiSerializable, IOpenApiExtensible
7474
/// </summary>
7575
public virtual IDictionary<string, IOpenApiExtension> Extensions { get; set; } = new Dictionary<string, IOpenApiExtension>();
7676

77-
/// <summary>
78-
/// The indentation string to prepand to each line for each indentation level.
79-
/// </summary>
80-
protected const string IndentationString = " ";
81-
8277
/// <summary>
8378
/// Parameter-less constructor
8479
/// </summary>

0 commit comments

Comments
 (0)