Skip to content

Commit

Permalink
Remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
CyrusNajmabadi committed Mar 29, 2024
1 parent f05dee1 commit c43fc75
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ public async ValueTask<ImmutableArray<TValue>> SelectAsArrayAsync<TValue, TArg>(
}

public TextDocumentStates<TState> AddRange(ImmutableArray<TState> states)
// TODO: we could more efficiently generate the new filePathToDocumentIds here.
=> new(_ids.AddRange(states.Select(state => state.Id)),
_map.AddRange(states.Select(state => KeyValuePairUtil.Create(state.Id, state))),
filePathToDocumentIds: null);
Expand All @@ -170,8 +169,6 @@ public TextDocumentStates<TState> RemoveRange(ImmutableArray<DocumentId> ids)
}

IEnumerable<DocumentId> enumerableIds = ids;

// TODO: we could more efficiently generate the new filePathToDocumentIds here.
return new(_ids.RemoveRange(enumerableIds), _map.RemoveRange(enumerableIds), filePathToDocumentIds: null);
}

Expand Down

0 comments on commit c43fc75

Please sign in to comment.