From 7a98d0558b1ab453e710ae6131fb3037309f9445 Mon Sep 17 00:00:00 2001 From: jvyden Date: Wed, 19 Jan 2022 09:09:38 -0500 Subject: [PATCH] [skip ci] Remove .NET 5 checks --- ProjectLighthouse.Tests.GameApiTests/AuthenticationTests.cs | 4 ---- ProjectLighthouse/Types/HeartedProfile.cs | 4 ---- 2 files changed, 8 deletions(-) diff --git a/ProjectLighthouse.Tests.GameApiTests/AuthenticationTests.cs b/ProjectLighthouse.Tests.GameApiTests/AuthenticationTests.cs index 912c3e1a..6cc89cb8 100644 --- a/ProjectLighthouse.Tests.GameApiTests/AuthenticationTests.cs +++ b/ProjectLighthouse.Tests.GameApiTests/AuthenticationTests.cs @@ -15,11 +15,7 @@ public class AuthenticationTests : LighthouseServerTest { HttpResponseMessage response = await this.Client.PostAsync("/LITTLEBIGPLANETPS3_XML/login", null!); Assert.False(response.IsSuccessStatusCode); - #if NET6_0_OR_GREATER Assert.True(response.StatusCode == HttpStatusCode.BadRequest); - #else - Assert.True(response.StatusCode == HttpStatusCode.NotAcceptable); - #endif } [DatabaseFact] diff --git a/ProjectLighthouse/Types/HeartedProfile.cs b/ProjectLighthouse/Types/HeartedProfile.cs index fcb2d454..f60fcee5 100644 --- a/ProjectLighthouse/Types/HeartedProfile.cs +++ b/ProjectLighthouse/Types/HeartedProfile.cs @@ -7,11 +7,7 @@ namespace LBPUnion.ProjectLighthouse.Types; public class HeartedProfile { // ReSharper disable once UnusedMember.Global - #if NET6_0_OR_GREATER [Obsolete($"Use {nameof(HeartedUserId)} instead, this is a key which you should never need to use.")] - #else - [Obsolete("Use HeartedUserId instead, this is a key which you should never need to use.")] - #endif [Key] public int HeartedProfileId { get; set; }