Skip to content

Commit

Permalink
Cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
koculu committed Jul 11, 2022
1 parent 33cba96 commit b646bfc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/ZoneTree/Collections/SkipList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ public class SkipListNode
/// to properly aligned memory locations no larger than the native word size
/// (the size of type native int) is atomic.
/// </summary>
private static bool IsValueAssignmentAtomic =
private static readonly bool IsValueAssignmentAtomic =
Unsafe.SizeOf<TValue>() <= IntPtr.Size;

public SkipListNode[] Next;
Expand Down
5 changes: 0 additions & 5 deletions src/ZoneTree/IZoneTreeIterator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,6 @@ public interface IZoneTreeIterator<TKey, TValue> : IDisposable
/// Gets the current element at the iterator's position.
/// </summary>
KeyValuePair<TKey, TValue> Current { get; }

/// <summary>
/// Returns the current disk segment associated with the iterator.
/// </summary>
IDiskSegment<TKey, TValue> DiskSegment { get; }

/// <summary>
/// Iterates to the next element.
Expand Down
6 changes: 3 additions & 3 deletions src/ZoneTree/Segments/Disk/SparseArrayEntry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

public class SparseArrayEntry<TKey, TValue>
{
public TKey Key;
public readonly TKey Key;

public TValue Value;
public readonly TValue Value;

public int Index;
public readonly int Index;

public SparseArrayEntry(TKey key, TValue value, int index)
{
Expand Down

0 comments on commit b646bfc

Please sign in to comment.