Skip to content

Commit

Permalink
Remove WorkoutToExerciseExporter
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramo-Y committed Nov 2, 2024
1 parent 3a2bf4c commit 5ab356b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 44 deletions.
6 changes: 1 addition & 5 deletions src/PersonalRecord.Domain/Controllers/HomeController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,17 @@ public class HomeController : Controller
private readonly PreparationDatabase _preparationDatabase;
private readonly ExerciseExporter _exerciseExporter;
private readonly WorkoutExporter _workoutExporter;
private readonly WorkoutToExerciseExporter _workoutToExerciseExporter;

public HomeController(
ILogger<HomeController> logger,
PreparationDatabase preparationDatabase,
ExerciseExporter exerciseExporter,
WorkoutExporter workoutExporter,
WorkoutToExerciseExporter workoutToExerciseExporter)
WorkoutExporter workoutExporter)
{
_logger = logger;
_preparationDatabase = preparationDatabase;
_exerciseExporter = exerciseExporter;
_workoutExporter = workoutExporter;
_workoutToExerciseExporter = workoutToExerciseExporter;
}

public IActionResult Index()
Expand All @@ -42,7 +39,6 @@ public async Task ExportAll()
{
await _exerciseExporter.GenerateAndExportAsync();
await _workoutExporter.GenerateAndExportAsync();
await _workoutToExerciseExporter.GenerateAndExportAsync();
}

[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
Expand Down
38 changes: 0 additions & 38 deletions src/PersonalRecord.Domain/Exporter/WorkoutToExerciseExporter.cs

This file was deleted.

1 change: 0 additions & 1 deletion src/PersonalRecord.Domain/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
//Exporters
builder.Services.AddTransient<ExerciseExporter>();
builder.Services.AddTransient<WorkoutExporter>();
builder.Services.AddTransient<WorkoutToExerciseExporter>();

var app = builder.Build();

Expand Down

0 comments on commit 5ab356b

Please sign in to comment.