Skip to content

Commit 5b74a42

Browse files
author
Alex Peck
committed
rem dead code
1 parent 12bf1a0 commit 5b74a42

File tree

2 files changed

+0
-27
lines changed

2 files changed

+0
-27
lines changed

BitFaster.Caching/Lfu/LfuNode.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,6 @@ public LfuNode(K k, V v)
1818
this.Value = v;
1919
}
2020

21-
public LfuNode(LfuNodeList<K, V> list, K k, V v)
22-
{
23-
this.list = list;
24-
this.Key = k;
25-
this.Value = v;
26-
}
27-
2821
public readonly K Key;
2922

3023
public V Value { get; set; }

BitFaster.Caching/Lfu/LfuNodeList.cs

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,6 @@ public LfuNode<K, V> First
2626
get { return head; }
2727
}
2828

29-
public LfuNode<K, V> Last
30-
{
31-
get { return head?.prev; }
32-
}
33-
3429
public void MoveToEnd(LfuNode<K, V> node)
3530
{
3631
this.Remove(node);
@@ -71,21 +66,6 @@ public void RemoveFirst()
7166
InternalRemoveNode(head);
7267
}
7368

74-
public void Clear()
75-
{
76-
LfuNode<K, V> current = head;
77-
78-
while (current != null)
79-
{
80-
LfuNode<K, V> temp = current;
81-
current = current.Next;
82-
temp.Invalidate();
83-
}
84-
85-
head = null;
86-
count = 0;
87-
}
88-
8969
private void InternalInsertNodeToEmptyList(LfuNode<K, V> newNode)
9070
{
9171
newNode.next = newNode;

0 commit comments

Comments
 (0)