Skip to content

Commit

Permalink
Revert "Use MustDisposeResource annotation to appease ReSharper ins…
Browse files Browse the repository at this point in the history
…pections"

This reverts commit 4cf6ab4.
  • Loading branch information
peppy committed May 21, 2024
1 parent 68a8ecc commit a45b7ab
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions osu.Game/Database/EmptyRealmSet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
using System.Collections.Generic;
using System.Collections.Specialized;
using System.ComponentModel;
using JetBrains.Annotations;
using Realms;
using Realms.Schema;

Expand All @@ -16,12 +15,8 @@ public class EmptyRealmSet<T> : IRealmCollection<T>
{
private IList<T> emptySet => Array.Empty<T>();

[MustDisposeResource]
public IEnumerator<T> GetEnumerator() => emptySet.GetEnumerator();

[MustDisposeResource]
IEnumerator IEnumerable.GetEnumerator() => emptySet.GetEnumerator();

public int Count => emptySet.Count;
public T this[int index] => emptySet[index];
public int IndexOf(object? item) => item == null ? -1 : emptySet.IndexOf((T)item);
Expand Down

0 comments on commit a45b7ab

Please sign in to comment.