Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
SapiensAnatis committed Jul 27, 2023
1 parent 8b3093b commit 14225cb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
5 changes: 0 additions & 5 deletions DragaliaAPI/Middleware/ExceptionHandlerMiddleware.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,6 @@ IDistributedCache cache
}
}

private static string? GetRedisKey(string? deviceId)
{
return deviceId is null ? null : $"refresh_sent:{deviceId}";
}

private async Task WriteResultCode(HttpContext context, ResultCode code)
{
context.Response.ContentType = CustomMessagePackOutputFormatter.ContentType;
Expand Down
7 changes: 0 additions & 7 deletions DragaliaAPI/Services/Game/AuthService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,6 @@ IDateTimeProvider dateTimeProvider
TokenValidationResult result = await this.ValidateToken(idToken);
JwtSecurityToken jwt = (JwtSecurityToken)result.SecurityToken;

this.logger.LogDebug(
"Token {token} validity: from {fromTime} to {toTime}",
jwt.ToString(),
jwt.ValidFrom,
jwt.ValidTo
);

using IDisposable accIdLog = LogContext.PushProperty(
CustomClaimType.AccountId,
jwt.Subject
Expand Down

0 comments on commit 14225cb

Please sign in to comment.