Remove debug prints and fix build warnings
- Remove all print statements from planning engine, data providers, and PDF generation - Fix deprecated CLGeocoder usage with MKLocalSearch for iOS 26 - Fix Swift 6 actor isolation by converting PDFGenerator/ExportService to @MainActor - Add @retroactive to CLLocationCoordinate2D protocol conformances - Fix unused variable warnings in GameDAGRouter and scenario planners - Remove unreachable catch blocks in SettingsViewModel 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -89,11 +89,15 @@ actor PDFAssetPrefetcher {
|
||||
}
|
||||
}
|
||||
|
||||
// Create immutable copies for concurrent access
|
||||
let teamsToFetch = teams
|
||||
let stadiumsToFetch = stadiums
|
||||
|
||||
// Run all fetches in parallel
|
||||
async let routeMapTask = fetchRouteMap(stops: trip.stops)
|
||||
async let cityMapsTask = fetchCityMaps(stops: trip.stops)
|
||||
async let logosTask = imageService.fetchTeamLogos(teams: teams)
|
||||
async let photosTask = imageService.fetchStadiumPhotos(stadiums: stadiums)
|
||||
async let logosTask = imageService.fetchTeamLogos(teams: teamsToFetch)
|
||||
async let photosTask = imageService.fetchStadiumPhotos(stadiums: stadiumsToFetch)
|
||||
async let poisTask = poiService.findPOIsForCities(stops: trip.stops, limit: 5)
|
||||
|
||||
// Await each result and update progress
|
||||
@@ -117,13 +121,6 @@ actor PDFAssetPrefetcher {
|
||||
progress.poisComplete = true
|
||||
await progressCallback?(progress)
|
||||
|
||||
print("[PDFAssetPrefetcher] Prefetch complete:")
|
||||
print(" - Route map: \(routeMap != nil ? "OK" : "Failed")")
|
||||
print(" - City maps: \(cityMaps.count) cities")
|
||||
print(" - Team logos: \(teamLogos.count) logos")
|
||||
print(" - Stadium photos: \(stadiumPhotos.count) photos")
|
||||
print(" - POIs: \(cityPOIs.values.reduce(0) { $0 + $1.count }) total POIs")
|
||||
|
||||
return PrefetchedAssets(
|
||||
routeMap: routeMap,
|
||||
cityMaps: cityMaps,
|
||||
@@ -141,7 +138,6 @@ actor PDFAssetPrefetcher {
|
||||
let mapSize = CGSize(width: 512, height: 350)
|
||||
return try await mapService.generateRouteMap(stops: stops, size: mapSize)
|
||||
} catch {
|
||||
print("[PDFAssetPrefetcher] Route map failed: \(error.localizedDescription)")
|
||||
return nil
|
||||
}
|
||||
}
|
||||
@@ -162,7 +158,6 @@ actor PDFAssetPrefetcher {
|
||||
let map = try await self.mapService.generateCityMap(stop: stop, size: mapSize)
|
||||
return (stop.city, map)
|
||||
} catch {
|
||||
print("[PDFAssetPrefetcher] City map for \(stop.city) failed: \(error.localizedDescription)")
|
||||
return (stop.city, nil)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user