Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions CodeJam.Main/Collections/Dictionary/LazyDictionary`2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ namespace CodeJam.Collections
public class LazyDictionary<TKey, TValue> : ILazyDictionary<TKey, TValue>
{
private readonly Func<TKey, TValue> _valueFactory;
private readonly IEqualityComparer<TKey> _comparer;
private readonly Dictionary<TKey, TValue> _map;

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

_valueFactory = valueFactory;
_comparer = comparer;
_map = new Dictionary<TKey, TValue>(comparer);
}

Expand Down Expand Up @@ -86,4 +84,4 @@ IEnumerator<KeyValuePair<TKey, TValue>> IEnumerable<KeyValuePair<TKey, TValue>>.
public IEnumerable<TValue> Values => _map.Values;
#endregion
}
}
}