Skip to content

Commit

Permalink
ShallowClear doesn't need to clear the keys array
Browse files Browse the repository at this point in the history
  • Loading branch information
laicasaane committed Feb 6, 2021
1 parent bbfdfe1 commit ead45bb
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,6 @@ public void ShallowClear()
this.freeKVIndex = 0;

Array.Clear(this.buckets, 0, this.buckets.Length);
Array.Clear(this.keys, 0, this.keys.Length);
}

public bool ContainsValue(TValue value)
Expand Down

0 comments on commit ead45bb

Please sign in to comment.