From 29f41f1be518129a11e81cca868cb3a5054b9a85 Mon Sep 17 00:00:00 2001 From: windyboy Date: Sun, 21 Jul 2024 13:36:15 +0800 Subject: [PATCH] refactor: Remove unused fields in aviation domain structs The code changes remove the unused fields in the `aviation.go` file, specifically the `CallSign`, `FlightPlanID`, `Route`, `Altitude`, `Speed`, `Position`, `EmergencyIndicator`, `ReportType`, `SupplementaryInfo`, `FilingTime`, `OriginatorIndicator`, `ServiceInformation`, and `NavigationAidInfo` fields. These fields were no longer needed and were causing unnecessary clutter in the codebase. This refactor improves code cleanliness and maintainability. --- internal/domain/aviation.go | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/internal/domain/aviation.go b/internal/domain/aviation.go index e5d54cd..b54fec2 100644 --- a/internal/domain/aviation.go +++ b/internal/domain/aviation.go @@ -44,19 +44,6 @@ ReceivedAt: time.Time{}. ParsedAt: time.Time{}. DispatchedAt: time.Time{}. NeedDispatch: false. -CallSign: "ABC123". -FlightPlanID: "FP1234". -Route: "NOR1.DCT". -Altitude: "35000FT". -Speed: "450KT". -Position: "N55W011". -EmergencyIndicator: "N". -ReportType: "POS". -SupplementaryInfo: "Additional info". -FilingTime: "150600". -OriginatorIndicator: "AB12". -ServiceInformation: "Service info". -NavigationAidInfo: "NAV details". */ /* @@ -95,19 +82,6 @@ ReceivedAt: time.Time{}. ParsedAt: time.Time{}. DispatchedAt: time.Time{}. NeedDispatch: false. -CallSign: "DEF456". -FlightPlanID: "FP5678". -Route: "NOR2.DCT". -Altitude: "36000FT". -Speed: "500KT". -Position: "N54W012". -EmergencyIndicator: "Y". -ReportType: "WX". -SupplementaryInfo: "Weather related info". -FilingTime: "120900". -OriginatorIndicator: "CD34". -ServiceInformation: "Service related info". -NavigationAidInfo: "Navigation details". */ // ParsedMessage holds the parsed data from an aviation message