Skip to content

Commit a8714c6

Browse files
authored
Remove unused member
_comparer is never used.
1 parent c27fdaf commit a8714c6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

CodeJam.Main/Collections/Dictionary/LazyDictionary`2.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ namespace CodeJam.Collections
1313
public class LazyDictionary<TKey, TValue> : ILazyDictionary<TKey, TValue>
1414
{
1515
private readonly Func<TKey, TValue> _valueFactory;
16-
private readonly IEqualityComparer<TKey> _comparer;
1716
private readonly Dictionary<TKey, TValue> _map;
1817

1918
/// <summary>
@@ -26,7 +25,6 @@ public LazyDictionary([NotNull] Func<TKey, TValue> valueFactory, IEqualityCompar
2625
Code.NotNull(valueFactory,nameof(valueFactory));
2726

2827
_valueFactory = valueFactory;
29-
_comparer = comparer;
3028
_map = new Dictionary<TKey, TValue>(comparer);
3129
}
3230

@@ -86,4 +84,4 @@ IEnumerator<KeyValuePair<TKey, TValue>> IEnumerable<KeyValuePair<TKey, TValue>>.
8684
public IEnumerable<TValue> Values => _map.Values;
8785
#endregion
8886
}
89-
}
87+
}

0 commit comments

Comments
 (0)