From e2da4cc54152796cdf9f1ec94c55f21e129a055a Mon Sep 17 00:00:00 2001 From: tangowithfoxtrot <5676771+tangowithfoxtrot@users.noreply.github.com> Date: Wed, 7 May 2025 14:11:03 -0700 Subject: [PATCH] remove unused code --- util/Setup/Program.cs | 6 +----- util/Setup/SetupHostEnvironment.cs | 12 ------------ 2 files changed, 1 insertion(+), 17 deletions(-) delete mode 100644 util/Setup/SetupHostEnvironment.cs diff --git a/util/Setup/Program.cs b/util/Setup/Program.cs index a951cbe17d..5cefd1ab8e 100644 --- a/util/Setup/Program.cs +++ b/util/Setup/Program.cs @@ -310,12 +310,8 @@ public class Program return true; } - catch (Exception ex) + catch { - // TODO: Remove exception message before main merge?? - Console.WriteLine( - $"Unable to validate installation id. Problem contacting Bitwarden {cloudRegion.ToString()} server.\nError: {ex.Message}" - ); return false; } } diff --git a/util/Setup/SetupHostEnvironment.cs b/util/Setup/SetupHostEnvironment.cs deleted file mode 100644 index 97e088741a..0000000000 --- a/util/Setup/SetupHostEnvironment.cs +++ /dev/null @@ -1,12 +0,0 @@ -using Microsoft.Extensions.FileProviders; -using Microsoft.Extensions.Hosting; - -namespace Bit.Setup; - -internal class SetupHostEnvironment : IHostEnvironment -{ - public string ApplicationName { get; set; } = "Setup"; - public IFileProvider ContentRootFileProvider { get; set; } = new NullFileProvider(); - public string ContentRootPath { get; set; } = string.Empty; - public string EnvironmentName { get; set; } = "Production"; -}