From 5afc74c4872ca4c49fe7990c316fecd4b0f46603 Mon Sep 17 00:00:00 2001 From: Jordan Dominion Date: Sun, 22 Oct 2023 16:01:52 -0400 Subject: [PATCH] Fix more Release build warnings Not being able to build locally in release mode because of the .NET 8 RC SDK is painful --- .../Components/Deployment/SymlinkDmbProvider.cs | 4 +--- .../Components/Watchdog/WindowsWatchdog.cs | 4 +--- .../Components/Watchdog/WindowsWatchdogFactory.cs | 2 -- 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/Tgstation.Server.Host/Components/Deployment/SymlinkDmbProvider.cs b/src/Tgstation.Server.Host/Components/Deployment/SymlinkDmbProvider.cs index 0054e7fa4b..2edc58d37e 100644 --- a/src/Tgstation.Server.Host/Components/Deployment/SymlinkDmbProvider.cs +++ b/src/Tgstation.Server.Host/Components/Deployment/SymlinkDmbProvider.cs @@ -1,5 +1,4 @@ -using System.Runtime.Versioning; -using System.Threading; +using System.Threading; using System.Threading.Tasks; using Tgstation.Server.Host.IO; @@ -9,7 +8,6 @@ namespace Tgstation.Server.Host.Components.Deployment /// /// A that uses symlinks. /// - [SupportedOSPlatform("windows")] sealed class SymlinkDmbProvider : SwappableDmbProvider { /// diff --git a/src/Tgstation.Server.Host/Components/Watchdog/WindowsWatchdog.cs b/src/Tgstation.Server.Host/Components/Watchdog/WindowsWatchdog.cs index 8ff6bf3362..05c1f10088 100644 --- a/src/Tgstation.Server.Host/Components/Watchdog/WindowsWatchdog.cs +++ b/src/Tgstation.Server.Host/Components/Watchdog/WindowsWatchdog.cs @@ -1,5 +1,4 @@ -using System.Runtime.Versioning; -using System.Threading; +using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.Logging; @@ -20,7 +19,6 @@ namespace Tgstation.Server.Host.Components.Watchdog /// /// A variant of the that works on Windows systems. /// - [SupportedOSPlatform("windows")] sealed class WindowsWatchdog : AdvancedWatchdog { /// diff --git a/src/Tgstation.Server.Host/Components/Watchdog/WindowsWatchdogFactory.cs b/src/Tgstation.Server.Host/Components/Watchdog/WindowsWatchdogFactory.cs index 0888294aa4..89ed6b145d 100644 --- a/src/Tgstation.Server.Host/Components/Watchdog/WindowsWatchdogFactory.cs +++ b/src/Tgstation.Server.Host/Components/Watchdog/WindowsWatchdogFactory.cs @@ -1,5 +1,4 @@ using System; -using System.Runtime.Versioning; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; @@ -21,7 +20,6 @@ namespace Tgstation.Server.Host.Components.Watchdog /// /// for creating s. /// - [SupportedOSPlatform("windows")] class WindowsWatchdogFactory : WatchdogFactory { ///