Skip to content

Commit d180b0d

Browse files
Orphan method removed
1 parent 4df5db8 commit d180b0d

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/Microsoft.OpenApi.Readers/OpenApiYamlDocumentReader.cs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
// Licensed under the MIT license.
33

44
using System;
5-
using System.IO;
6-
using System.Linq;
75
using Microsoft.OpenApi.Exceptions;
86
using Microsoft.OpenApi.Extensions;
97
using Microsoft.OpenApi.Interfaces;
@@ -125,17 +123,5 @@ public T ReadFragment<T>(YamlDocument input, OpenApiSpecVersion version, out Ope
125123

126124
return (T)element;
127125
}
128-
129-
/// <summary>
130-
/// Helper method to turn streams into YamlDocument
131-
/// </summary>
132-
/// <param name="input">Stream containing YAML formatted text</param>
133-
/// <returns>Instance of a YamlDocument</returns>
134-
static YamlDocument LoadYamlDocument(TextReader input)
135-
{
136-
var yamlStream = new YamlStream();
137-
yamlStream.Load(input);
138-
return yamlStream.Documents.First();
139-
}
140126
}
141127
}

0 commit comments

Comments
 (0)