Skip to content

Commit

Permalink
Remove additional unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
Archomeda committed Jun 21, 2019
1 parent a5decf0 commit 2924575
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions Gw2Sharp/WebApi/Caching/MemoryCacheMethod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,6 @@ private void CollectInnerGarbage(DateTime now, ConcurrentDictionary<object, obje

#region BaseCacheController overrides

private async Task<bool> HasInternalAsync<T>(string category, object id) where T : object
{
return this.cachedItems.TryGetValue(category, out var cache) &&
cache.TryGetValue(id, out object obj) &&
obj is CacheItem<T> item &&
item.ExpiryTime > DateTime.Now;
}

/// <inheritdoc />
public override Task<CacheItem<T>?> TryGetAsync<T>(string category, object id)
{
Expand Down

0 comments on commit 2924575

Please sign in to comment.