From a81a8680052c678268173354e0e08cca8b097ab7 Mon Sep 17 00:00:00 2001 From: Alessio Dal Santo Date: Thu, 28 May 2026 11:29:10 +0200 Subject: [PATCH] [Cleanup] Rimozione codice morto MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Eliminati file e codice inutilizzati identificati durante l'analisi del codice morto: File eliminati: - Data_Coupler/Data/WeatherForecast.cs: classe demo del template Blazor, mai referenziata - Data_Coupler/Data/WeatherForecastService.cs: servizio demo del template Blazor, mai iniettato - DataConnection/CredentialManagement/Models/CredentialExtensions2.cs: file vuoto residuo di refactoring - DataConnection/CredentialManagement/Models/CredentialExtensions_New.cs: file vuoto residuo di refactoring - DataConnection/CredentialManagement/ServiceCollectionExtensions_New.cs: file vuoto residuo di refactoring - CredentialManager/Services/KeyMappingService.cs: file vuoto senza implementazione - DataConnection/DB/EF/ExistingDatabaseExample.cs: file vuoto di esempio non compilato Interfaccia rimossa: - DataConnection/CredentialManagement/ServiceCollectionExtensions.cs: rimossa IDataConnectionCredentialServiceConfiguration, interfaccia mai implementata né utilizzata in alcuna parte del codebase Co-Authored-By: Claude Sonnet 4.6 --- .../Services/KeyMappingService.cs | 0 .../Models/CredentialExtensions2.cs | 0 .../Models/CredentialExtensions_New.cs | 0 .../ServiceCollectionExtensions.cs | 20 ------------------- .../ServiceCollectionExtensions_New.cs | 0 .../DB/EF/ExistingDatabaseExample.cs | 0 Data_Coupler/Data/WeatherForecast.cs | 12 ----------- Data_Coupler/Data/WeatherForecastService.cs | 19 ------------------ 8 files changed, 51 deletions(-) delete mode 100644 CredentialManager/Services/KeyMappingService.cs delete mode 100644 DataConnection/CredentialManagement/Models/CredentialExtensions2.cs delete mode 100644 DataConnection/CredentialManagement/Models/CredentialExtensions_New.cs delete mode 100644 DataConnection/CredentialManagement/ServiceCollectionExtensions_New.cs delete mode 100644 DataConnection/DB/EF/ExistingDatabaseExample.cs delete mode 100644 Data_Coupler/Data/WeatherForecast.cs delete mode 100644 Data_Coupler/Data/WeatherForecastService.cs diff --git a/CredentialManager/Services/KeyMappingService.cs b/CredentialManager/Services/KeyMappingService.cs deleted file mode 100644 index e69de29..0000000 diff --git a/DataConnection/CredentialManagement/Models/CredentialExtensions2.cs b/DataConnection/CredentialManagement/Models/CredentialExtensions2.cs deleted file mode 100644 index e69de29..0000000 diff --git a/DataConnection/CredentialManagement/Models/CredentialExtensions_New.cs b/DataConnection/CredentialManagement/Models/CredentialExtensions_New.cs deleted file mode 100644 index e69de29..0000000 diff --git a/DataConnection/CredentialManagement/ServiceCollectionExtensions.cs b/DataConnection/CredentialManagement/ServiceCollectionExtensions.cs index fc339d2..6dc3194 100644 --- a/DataConnection/CredentialManagement/ServiceCollectionExtensions.cs +++ b/DataConnection/CredentialManagement/ServiceCollectionExtensions.cs @@ -84,23 +84,3 @@ public class DataConnectionCredentialOptions /// public int DatabaseTimeout { get; set; } = 30; } - -/// -/// Interfaccia per il servizio di gestione credenziali specifico per DataConnection -/// Questa interfaccia estende le funzionalità base di CredentialManager -/// con metodi specifici per l'integrazione con DataConnection -/// -public interface IDataConnectionCredentialServiceConfiguration -{ - /// - /// Configura il servizio con le opzioni specificate - /// - /// Le opzioni di configurazione - void Configure(DataConnectionCredentialOptions options); - - /// - /// Verifica la connessione al database delle credenziali - /// - /// True se la connessione è valida - Task TestConnectionAsync(); -} diff --git a/DataConnection/CredentialManagement/ServiceCollectionExtensions_New.cs b/DataConnection/CredentialManagement/ServiceCollectionExtensions_New.cs deleted file mode 100644 index e69de29..0000000 diff --git a/DataConnection/DB/EF/ExistingDatabaseExample.cs b/DataConnection/DB/EF/ExistingDatabaseExample.cs deleted file mode 100644 index e69de29..0000000 diff --git a/Data_Coupler/Data/WeatherForecast.cs b/Data_Coupler/Data/WeatherForecast.cs deleted file mode 100644 index 0a2a802..0000000 --- a/Data_Coupler/Data/WeatherForecast.cs +++ /dev/null @@ -1,12 +0,0 @@ -namespace Data_Coupler.Data; - -public class WeatherForecast -{ - public DateOnly Date { get; set; } - - public int TemperatureC { get; set; } - - public int TemperatureF => 32 + (int)(TemperatureC / 0.5556); - - public string? Summary { get; set; } -} diff --git a/Data_Coupler/Data/WeatherForecastService.cs b/Data_Coupler/Data/WeatherForecastService.cs deleted file mode 100644 index 102cd46..0000000 --- a/Data_Coupler/Data/WeatherForecastService.cs +++ /dev/null @@ -1,19 +0,0 @@ -namespace Data_Coupler.Data; - -public class WeatherForecastService -{ - private static readonly string[] Summaries = new[] - { - "Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching" - }; - - public Task GetForecastAsync(DateOnly startDate) - { - return Task.FromResult(Enumerable.Range(1, 5).Select(index => new WeatherForecast - { - Date = startDate.AddDays(index), - TemperatureC = Random.Shared.Next(-20, 55), - Summary = Summaries[Random.Shared.Next(Summaries.Length)] - }).ToArray()); - } -}