Skip to content
This repository was archived by the owner on Jan 22, 2026. It is now read-only.

Commit 97d7976

Browse files
committed
Rollback changes.
1 parent 23b7c7d commit 97d7976

1 file changed

Lines changed: 0 additions & 41 deletions

File tree

src/BitzArt.XDoc/XDoc.cs

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -131,45 +131,4 @@ public void Dispose()
131131
{
132132
_fetchedAssemblies.Clear();
133133
}
134-
135-
private static readonly ConcurrentDictionary<string, XDoc> Instances = new();
136-
137-
/// <summary>
138-
/// Creates a new instance of <see cref="XDoc"/> or returns an existing one
139-
/// </summary>
140-
/// <param name="name"></param>
141-
/// <returns></returns>
142-
public static XDoc GetOrCreate(string name = "")
143-
{
144-
if (Instances.TryGetValue(name, out var doc))
145-
{
146-
return doc;
147-
}
148-
149-
var xdoc = new XDoc();
150-
151-
if (Instances.TryAdd(name, xdoc))
152-
{
153-
return xdoc;
154-
}
155-
156-
return Instances[name];
157-
}
158-
159-
/// <summary>
160-
/// Removes the <see cref="XDoc"/> instance with the specified name
161-
/// </summary>
162-
/// <param name="name"></param>
163-
/// <returns></returns>
164-
public static bool Remove(string name)
165-
{
166-
if (Instances.TryRemove(name, out var xdoc))
167-
{
168-
xdoc.Dispose();
169-
170-
return true;
171-
}
172-
173-
return false;
174-
}
175134
}

0 commit comments

Comments
 (0)