Skip to content

Commit 23692b1

Browse files
authored
rem obsolete (#170)
1 parent bc9fe8c commit 23692b1

File tree

2 files changed

+0
-17
lines changed

2 files changed

+0
-17
lines changed

BitFaster.Caching.UnitTests/Lru/ClassicLruTests.cs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -112,17 +112,6 @@ public void WhenItemDoesNotExistTryGetReturnsNullAndFalse()
112112
value.Should().BeNull();
113113
}
114114

115-
[Fact]
116-
public void WhenItemIsAddedThenRetrievedHitRatioIsHalf()
117-
{
118-
lru.GetOrAdd(1, valueFactory.Create);
119-
bool result = lru.TryGet(1, out var value);
120-
121-
#pragma warning disable CS0618 // Type or member is obsolete
122-
lru.HitRatio.Should().Be(0.5);
123-
#pragma warning restore CS0618 // Type or member is obsolete
124-
}
125-
126115
[Fact]
127116
public void MetricsAreEnabled()
128117
{

BitFaster.Caching/Lru/ClassicLru.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,6 @@ public ClassicLru(int concurrencyLevel, int capacity, IEqualityComparer<K> compa
5656
///<inheritdoc/>
5757
public int Capacity => this.capacity;
5858

59-
/// <summary>
60-
/// Gets the ratio of hits to misses, where a value of 1 indicates 100% hits.
61-
/// </summary>
62-
[ObsoleteAttribute("This property is obsolete. Use Metrics instead.", false)]
63-
public double HitRatio => this.Metrics.HitRatio;
64-
6559
///<inheritdoc/>
6660
public ICacheMetrics Metrics => this.metrics;
6761

0 commit comments

Comments
 (0)