Skip to content

Commit 8869cbe

Browse files
committed
Remove unused property
1 parent c0bd75d commit 8869cbe

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Completion/CompletionListCache.cs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,7 @@ namespace Microsoft.CodeAnalysis.Razor.Completion;
88

99
internal class CompletionListCache
1010
{
11-
private record struct Slot(
12-
int Id,
13-
VSInternalCompletionList CompletionList,
14-
object? Context,
15-
bool Used = true);
11+
private record struct Slot(int Id, VSInternalCompletionList CompletionList, object? Context);
1612

1713
// Internal for testing
1814
internal const int MaxCacheSize = 10;
@@ -74,11 +70,6 @@ public bool TryGet(int id, out (VSInternalCompletionList CompletionList, object?
7470

7571
var slot = _items[index];
7672

77-
if (!slot.Used)
78-
{
79-
break;
80-
}
81-
8273
if (slot.Id == id)
8374
{
8475
result = (slot.CompletionList, slot.Context);

0 commit comments

Comments
 (0)