From d9beb4b660ae58e78e2075b24bd683f0e3908dbe Mon Sep 17 00:00:00 2001 From: sbwalker Date: Tue, 23 Jan 2024 13:14:28 -0500 Subject: [PATCH] remove unnecessary service and usings --- Oqtane.Server/Infrastructure/DatabaseManager.cs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Oqtane.Server/Infrastructure/DatabaseManager.cs b/Oqtane.Server/Infrastructure/DatabaseManager.cs index 5d24dd9f..d05524ca 100644 --- a/Oqtane.Server/Infrastructure/DatabaseManager.cs +++ b/Oqtane.Server/Infrastructure/DatabaseManager.cs @@ -1,10 +1,7 @@ using System; -using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; -using System.Runtime.Loader; -using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Identity; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Caching.Memory; @@ -29,16 +26,14 @@ namespace Oqtane.Infrastructure { private readonly IConfigManager _config; private readonly IServiceScopeFactory _serviceScopeFactory; - private readonly IWebHostEnvironment _environment; private readonly IMemoryCache _cache; private readonly IConfigManager _configManager; private readonly ILogger _filelogger; - public DatabaseManager(IConfigManager config, IServiceScopeFactory serviceScopeFactory, IWebHostEnvironment environment, IMemoryCache cache, IConfigManager configManager, ILogger filelogger) + public DatabaseManager(IConfigManager config, IServiceScopeFactory serviceScopeFactory, IMemoryCache cache, IConfigManager configManager, ILogger filelogger) { _config = config; _serviceScopeFactory = serviceScopeFactory; - _environment = environment; _cache = cache; _configManager = configManager; _filelogger = filelogger;