Skip to content

Commit 41b3d9d

Browse files
committed
code cleanup
1 parent 4b4d31d commit 41b3d9d

File tree

2 files changed

+0
-25
lines changed

2 files changed

+0
-25
lines changed

src/Microsoft.OpenApi/Services/OpenApiWorkspace.cs

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,10 @@ namespace Microsoft.OpenApi.Services
1414
/// </summary>
1515
public class OpenApiWorkspace
1616
{
17-
private readonly Dictionary<Uri, OpenApiDocument> _documents = new();
1817
private readonly Dictionary<string, Uri> _documentsIdRegistry = new();
1918
private readonly Dictionary<Uri, Stream> _artifactsRegistry = new();
2019
private readonly Dictionary<Uri, IOpenApiReferenceable> _IOpenApiReferenceableRegistry = new();
2120

22-
/// <summary>
23-
/// A list of OpenApiDocuments contained in the workspace
24-
/// </summary>
25-
public IEnumerable<OpenApiDocument> Documents
26-
{
27-
get
28-
{
29-
return _documents.Values;
30-
}
31-
}
32-
3321
/// <summary>
3422
/// The base location from where all relative references are resolved
3523
/// </summary>
@@ -108,17 +96,6 @@ public void AddDocumentId(string key, Uri value)
10896
}
10997
}
11098

111-
/// <summary>
112-
/// Add an OpenApiDocument to the workspace.
113-
/// </summary>
114-
/// <param name="location"></param>
115-
/// <param name="document"></param>
116-
public void AddDocument(string location, OpenApiDocument document)
117-
{
118-
document.Workspace = this;
119-
_documents.Add(ToLocationUrl(location), document);
120-
}
121-
12299
/// <summary>
123100
/// Retrieves the document id given a key.
124101
/// </summary>

test/Microsoft.OpenApi.Tests/PublicApi/PublicApi.approved.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1507,8 +1507,6 @@ namespace Microsoft.OpenApi.Services
15071507
public OpenApiWorkspace(Microsoft.OpenApi.Services.OpenApiWorkspace workspace) { }
15081508
public OpenApiWorkspace(System.Uri baseUrl) { }
15091509
public System.Uri BaseUrl { get; }
1510-
public System.Collections.Generic.IEnumerable<Microsoft.OpenApi.Models.OpenApiDocument> Documents { get; }
1511-
public void AddDocument(string location, Microsoft.OpenApi.Models.OpenApiDocument document) { }
15121510
public void AddDocumentId(string key, System.Uri value) { }
15131511
public int ComponentsCount() { }
15141512
public bool Contains(string location) { }

0 commit comments

Comments
 (0)