Skip to content

Commit 1660852

Browse files
committed
Remove outdated comments
1 parent e083a88 commit 1660852

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

Refresh.Core/Services/CacheService.cs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,6 @@ public void UpdateUserHeartedStatusByUser(GameUser source, GameUser target, bool
335335
CachedReturn<OwnUserRelations> fromCache = this.GetOwnUserRelations(source, target, database);
336336
if (fromCache.WasRefreshed) return; // value is already up-to-date
337337

338-
// dictionaries are already ensured to exist
339338
this.Log(LogLevel.Debug, "Lazily setting hearted status by user {0} for user {1} to {2}", source, target, newValue);
340339
this._cachedOwnUserRelations.First(c => c.SourceKey == source.UserId && c.TargetKey == target.UserId).Content.IsHearted = newValue;
341340
}
@@ -409,7 +408,6 @@ public void UpdateLevelHeartedStatusByUser(GameUser source, GameLevel target, bo
409408
CachedReturn<OwnLevelRelations> fromCache = this.GetOwnLevelRelations(source, target, database);
410409
if (fromCache.WasRefreshed) return; // value is already up-to-date
411410

412-
// dictionaries are already ensured to exist
413411
this.Log(LogLevel.Debug, "Lazily setting hearted status by user {0} for level {1} to {2}", source, target, newValue);
414412
this._cachedOwnLevelRelations.First(c => c.SourceKey == source.UserId && c.TargetKey == target.LevelId).Content.IsHearted = newValue;
415413
}
@@ -426,7 +424,6 @@ public void UpdateLevelQueuedStatusByUser(GameUser source, GameLevel target, boo
426424
CachedReturn<OwnLevelRelations> fromCache = this.GetOwnLevelRelations(source, target, database);
427425
if (fromCache.WasRefreshed) return; // value is already up-to-date
428426

429-
// dictionaries are already ensured to exist
430427
this.Log(LogLevel.Debug, "Lazily setting queued status by user {0} for level {1} to {2}", source, target, newValue);
431428
this._cachedOwnLevelRelations.First(c => c.SourceKey == source.UserId && c.TargetKey == target.LevelId).Content.IsQueued = newValue;
432429
}
@@ -464,7 +461,6 @@ public void UpdateLevelRatingByUser(GameUser source, GameLevel target, int newRa
464461
CachedReturn<OwnLevelRelations> fromCache = this.GetOwnLevelRelations(source, target, database);
465462
if (fromCache.WasRefreshed) return; // value is already up-to-date
466463

467-
// dictionaries are already ensured to exist
468464
this.Log(LogLevel.Debug, "Lazily setting level rating by user {0} for level {1} to {2}", source, target, newRating);
469465
this._cachedOwnLevelRelations.First(c => c.SourceKey == source.UserId && c.TargetKey == target.LevelId).Content.LevelRating = newRating;
470466
}
@@ -481,7 +477,6 @@ public void IncrementLevelTotalPlaysByUser(GameUser source, GameLevel target, in
481477
CachedReturn<OwnLevelRelations> fromCache = this.GetOwnLevelRelations(source, target, database);
482478
if (fromCache.WasRefreshed) return; // value is already up-to-date
483479

484-
// dictionaries are already ensured to exist
485480
this.Log(LogLevel.Debug, "Lazily incrementing total plays by user {0} for level {1} by {2}", source, target, incrementor);
486481
this._cachedOwnLevelRelations.First(c => c.SourceKey == source.UserId && c.TargetKey == target.LevelId).Content.TotalPlayCount += incrementor;
487482
}
@@ -498,7 +493,6 @@ public void IncrementLevelTotalCompletionsByUser(GameUser source, GameLevel targ
498493
CachedReturn<OwnLevelRelations> fromCache = this.GetOwnLevelRelations(source, target, database);
499494
if (fromCache.WasRefreshed) return; // value is already up-to-date
500495

501-
// dictionaries are already ensured to exist
502496
this.Log(LogLevel.Debug, "Lazily incrementing total completions by user {0} for level {1} by {2}", source, target, incrementor);
503497
this._cachedOwnLevelRelations.First(c => c.SourceKey == source.UserId && c.TargetKey == target.LevelId).Content.TotalCompletionCount += incrementor;
504498
}
@@ -516,7 +510,6 @@ public void ResetLevelCompletionCountByUser(GameUser source)
516510
{
517511
foreach (CachedRelationData<ObjectId, int, OwnLevelRelations> relations in this._cachedOwnLevelRelations.Where(c => c.SourceKey == source.UserId))
518512
{
519-
// will be refreshed later anyway; don't want too many DB calls here (e.g. user had 100 levels queued, this method would in that case send 600 DB queries)
520513
if (relations.ExpiresAt < now) continue;
521514

522515
this.Log(LogLevel.Debug, "Resetting total completions by user {0} for level {1}", source, relations.TargetKey);
@@ -536,7 +529,6 @@ public void IncrementLevelPhotosByUser(GameUser source, GameLevel target, int in
536529
CachedReturn<OwnLevelRelations> fromCache = this.GetOwnLevelRelations(source, target, database);
537530
if (fromCache.WasRefreshed) return; // value is already up-to-date
538531

539-
// dictionaries are already ensured to exist
540532
this.Log(LogLevel.Debug, "Lazily incrementing total photos by user {0} for level {1} by {2}", source, target, incrementor);
541533
this._cachedOwnLevelRelations.First(c => c.SourceKey == source.UserId && c.TargetKey == target.LevelId).Content.PhotoCount += incrementor;
542534
}
@@ -554,7 +546,6 @@ public void ResetLevelPhotoCountsByUser(GameUser source)
554546
{
555547
foreach (CachedRelationData<ObjectId, int, OwnLevelRelations> relations in this._cachedOwnLevelRelations.Where(c => c.SourceKey == source.UserId))
556548
{
557-
// will be refreshed later anyway; don't want too many DB calls here (e.g. user had 100 levels queued, this method would in that case send 600 DB queries)
558549
if (relations.ExpiresAt < now) continue;
559550

560551
this.Log(LogLevel.Debug, "Resetting total photos by user {0} for level {1}", source, relations.TargetKey);

0 commit comments

Comments
 (0)