From ea15f86ff6765fa7e01e00e61d51540897de54f9 Mon Sep 17 00:00:00 2001 From: Ariel Costas Guerrero Date: Fri, 7 Nov 2025 15:25:33 +0100 Subject: Remove unused output buffer and debug logging from GetConsolidatedCirculations method --- .../Controllers/VigoController.cs | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'src/Costasdev.Busurbano.Backend') diff --git a/src/Costasdev.Busurbano.Backend/Controllers/VigoController.cs b/src/Costasdev.Busurbano.Backend/Controllers/VigoController.cs index fb91944..362c73e 100644 --- a/src/Costasdev.Busurbano.Backend/Controllers/VigoController.cs +++ b/src/Costasdev.Busurbano.Backend/Controllers/VigoController.cs @@ -91,8 +91,6 @@ public class VigoController : ControllerBase [FromQuery] int stopId ) { - StringBuilder outputBuffer = new(); - // Use Europe/Madrid timezone consistently to avoid UTC/local skew var tz = TimeZoneInfo.FindSystemTimeZoneById("Europe/Madrid"); var nowLocal = TimeZoneInfo.ConvertTime(DateTime.UtcNow, tz); @@ -211,16 +209,6 @@ public class VigoController : ControllerBase } }); - // Also capture details in debug buffer for diagnostics - outputBuffer.AppendLine("**No circulation matched. List of all of them:**"); - foreach (var circulation in possibleCirculations) - { - outputBuffer.AppendLine( - $"Circulation {circulation.TripId} stopping at {circulation.CallingDateTime()!.Value} (diff: {estimatedArrivalTime - circulation.CallingDateTime()!.Value:HH:mm})"); - } - - outputBuffer.AppendLine(); - continue; } -- cgit v1.3