Skip to content

Commit 3f53054

Browse files
committed
Remove no longer necessary logging, remove outdated comment
1 parent e9fbec5 commit 3f53054

2 files changed

Lines changed: 0 additions & 7 deletions

File tree

Refresh.Database/GameDatabaseContext.Leaderboard.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ public DatabaseScoreList GetLevelTopScoresByFriends(GameUser user, GameLevel lev
142142
.Where(s => s.LevelId == level.LevelId)
143143
.OrderByDescending(s => s.Score)
144144
.Where(s => s.Rank != 0)
145-
//TODO: THIS CALL IS EXTREMELY INEFFECIENT!!! once we are in postgres land, figure out a way to do this effeciently
146145
.Where(s => mutuals.Contains(s.PublisherId));
147146

148147
if (scoreType != 0)

Refresh.Database/GameDatabaseContext.Statistics.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -221,17 +221,13 @@ private void MarkLevelStatisticsDirty(GameLevel level)
221221
public void RecalculateScoreStatistics(int levelId, byte scoreType, bool saveChanges = true)
222222
{
223223
List<GameScore> scores = this.GameScores
224-
#if DEBUG
225-
.Include(s => s.Publisher)
226-
#endif
227224
.Where(s => s.LevelId == levelId && s.ScoreType == scoreType)
228225
.OrderByDescending(s => s.Score)
229226
.ToList();
230227

231228
// Step 1: Reset all ranks
232229
foreach (GameScore score in scores)
233230
{
234-
this._logger.LogDebug(RefreshContext.Database, $"Reset {score.ScoreId} ({score.Score} by {score.Publisher}) rank to 0");
235231
score.Rank = 0;
236232
}
237233

@@ -247,8 +243,6 @@ public void RecalculateScoreStatistics(int levelId, byte scoreType, bool saveCha
247243
rank++;
248244

249245
score.Rank = rank;
250-
this._logger.LogDebug(RefreshContext.Database, $"Set {score.ScoreId} ({score.Score} by {score.Publisher}) rank to {rank}");
251-
252246
previousScore = score.Score;
253247
}
254248

0 commit comments

Comments
 (0)