From 39b2e4e0a09f340dd58fe78096c2ece49b13dcec Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Fri, 8 Dec 2023 16:18:34 +0900 Subject: [PATCH] Fix warnings --- BTCPayServer.Vault/BTCPayServer.Vault.csproj | 2 +- BTCPayServer.Vault/Extensions.cs | 11 ----------- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/BTCPayServer.Vault/BTCPayServer.Vault.csproj b/BTCPayServer.Vault/BTCPayServer.Vault.csproj index da41bd0..3bcb139 100644 --- a/BTCPayServer.Vault/BTCPayServer.Vault.csproj +++ b/BTCPayServer.Vault/BTCPayServer.Vault.csproj @@ -19,7 +19,7 @@ - + diff --git a/BTCPayServer.Vault/Extensions.cs b/BTCPayServer.Vault/Extensions.cs index 772bec5..589188a 100644 --- a/BTCPayServer.Vault/Extensions.cs +++ b/BTCPayServer.Vault/Extensions.cs @@ -23,8 +23,6 @@ namespace BTCPayServer.Vault { public static void AddAvalonia(this IServiceCollection services) where TApp : Application, new() { - bool useGpuLinux = true; - var result = AppBuilder.Configure(); if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) @@ -33,15 +31,6 @@ namespace BTCPayServer.Vault .UseWin32() .UseSkia(); } - else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) - { - if (DetectLLVMPipeRasterizer()) - { - useGpuLinux = false; - } - - result.UsePlatformDetect(); - } else { result.UsePlatformDetect();