aboutsummaryrefslogtreecommitdiff
path: root/src/Costasdev.Busurbano.Backend/Controllers/VigoController.cs
diff options
context:
space:
mode:
authorAriel Costas Guerrero <ariel@costas.dev>2025-11-07 15:25:33 +0100
committerAriel Costas Guerrero <ariel@costas.dev>2025-11-07 15:25:33 +0100
commitea15f86ff6765fa7e01e00e61d51540897de54f9 (patch)
tree9e478b6481ac59abab93e3a6b7190604fb383dcb /src/Costasdev.Busurbano.Backend/Controllers/VigoController.cs
parent65cc4f1ed891281638afb2f5946ebf3e0c637790 (diff)
Remove unused output buffer and debug logging from GetConsolidatedCirculations method
Diffstat (limited to 'src/Costasdev.Busurbano.Backend/Controllers/VigoController.cs')
-rw-r--r--src/Costasdev.Busurbano.Backend/Controllers/VigoController.cs12
1 files changed, 0 insertions, 12 deletions
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;
}