Skip to content

Commit dda36cb

Browse files
committed
REmove all comments and logs
1 parent dc3f20e commit dda36cb

4 files changed

Lines changed: 2 additions & 31 deletions

File tree

AirCasting/CreateSessionViews/ChooseCustomLocationView.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,8 @@ struct ChooseCustomLocationView: View {
3838
}
3939
.background(confirmCreatingSessionLink)
4040
.sheet(isPresented: $isLocationPopupPresented, onDismiss: {
41-
4241
guard let newLocation = location else { return }
43-
Log.warning("2: \(newLocation)")
42+
4443
locationChangedProgramatically = true
4544
locationTracker.ovverridenLocation = newLocation
4645
}, content: {
@@ -62,7 +61,6 @@ struct ChooseCustomLocationView: View {
6261
locationTracker: locationTracker,
6362
stickHardToTheUser: true)
6463
.indicateMapLocationChange { newLocation in
65-
Log.warning("1: \(newLocation)")
6664
if !locationChangedProgramatically {
6765
locationChangedProgramatically = false
6866
location = .init(latitude: newLocation.coordinate.latitude,

AirCasting/CreateSessionViews/ConfirmCreatingSessionView.swift

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ struct ConfirmCreatingSessionView: View {
3232
private var shouldTrackLocation: Bool { sessionContext.sessionType == .mobile && !sessionContext.locationless }
3333

3434
init(creatingSessionFlowContinues: Binding<Bool>, sessionName: String, initialLocation: CLLocation? = nil) {
35-
Log.warning("Confirm creating session view initial location: \(initialLocation)")
3635
_creatingSessionFlowContinues = .init(projectedValue: creatingSessionFlowContinues)
3736
self.sessionName = sessionName
3837
self.initialLocation = initialLocation
@@ -184,11 +183,8 @@ extension ConfirmCreatingSessionView {
184183
sessionContext.saveCurrentLocation(lat: krakowLat, log: krakowLong)
185184
return
186185
#endif
187-
Log.warning("getAndSaveStartingLocation location entered")
188186

189187
if (sessionContext.sessionType == .fixed && sessionContext.isIndoor!) || sessionContext.locationless {
190-
Log.warning("getAndSaveStartingLocation location entered \(sessionContext.sessionType == .fixed ), locationless: \(sessionContext.locationless)")
191-
Log.warning("getAndSaveStartingLocation location entered 2 \(sessionContext.isIndoor!)")
192188
sessionContext.saveCurrentLocation(lat: 200, log: 200)
193189
} else if (sessionContext.sessionType == .fixed && !sessionContext.isIndoor!) {
194190

@@ -199,33 +195,15 @@ extension ConfirmCreatingSessionView {
199195
return
200196
}
201197

202-
Log.warning("HERE lat: \(lat), lon: \(lon)")
203-
// MARTA: Above is working but the session is in the ocean
204-
// Chek: Was michael's example the same? Maybe just 0,0 is in the ocean but now this is fixed?
205-
// This can be due to area instead of specific place differences
206-
// Check: Did my changes actually fix anything? Or was is still in a good place just not zoomed out?
207-
// Map is still not fixed (or is it just showing the sea?)
208-
// W pewnym momencie lokalizacja sie zmienia w ConfirmCreatingSessionView
209-
210-
/*[09-29-2025 15:32:16.664] ConfirmCreatingSessionView.swift: ⚠️ Confirm creating session view initial location: Optional((51.507, -0.128))
211-
[09-29-2025 15:32:17.184] ConfirmCreatingSessionView.swift: ⚠️ Confirm creating session view initial location: Optional((51.507, -0.128))
212-
[09-29-2025 15:32:17.453] ChooseCustomLocationView.swift: ⚠️ 1: <+51.35636507,+1.96028609> +/- 0.00m (speed -1.00 mps / course -1.00) @ 29/09/2025, 17:32:17 Central European Summer Time
213-
[09-29-2025 15:32:17.454] ConfirmCreatingSessionView.swift: ⚠️ Confirm creating session view initial location: Optional((51.356, 1.960))
214-
[09-29-2025 15:32:17.941] ConfirmCreatingSessionView.swift: ⚠️ Confirm creating session view initial location: Optional((51.356, 1.960))*/
215-
216198
sessionContext.saveCurrentLocation(lat: lat, log: lon)
217199

218200
} else {
219-
//Log.warning("getAndSaveStartingLocation check for lat and long: \(locationTracker.location.value as Any)")
220-
221201
guard let lat = (locationTracker.location.value?.coordinate.latitude),
222202
let lon = (locationTracker.location.value?.coordinate.longitude)
223203
else {
224204
Log.error("No location found!")
225205
return
226206
}
227-
228-
//Log.warning("getAndSaveStartingLocation lat: \(lat), lon: \(lon)")
229207
sessionContext.saveCurrentLocation(lat: lat, log: lon)
230208
}
231209
}

AirCasting/Map/LocationTracker.swift

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -172,17 +172,13 @@ class MapLocationTrackerAdapter: MapLocationTracker {
172172
}
173173

174174
struct ConstantTracker: MapLocationTracker {
175-
176175
let location: CLLocation
177176

178177
func getLastKnownLocation() -> CLLocation? {
179-
Log.warning("Constant tracker get last known location location: \(location)")
180-
return location
178+
location
181179
}
182180

183181
func startTrackingUserPosition(_ newPos: @escaping (CLLocation) -> Void) -> MapLocationTrackerStoper {
184-
Log.warning("Constant tracker start tracking user position location: \(location)")
185-
186182
newPos(location)
187183
return Stoper()
188184
}

AirCasting/Models/SessionContext.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ final class CreateSessionContext: ObservableObject {
4141

4242
func saveCurrentLocation(lat: Double, log: Double) {
4343
startingLocation = CLLocationCoordinate2D(latitude: lat, longitude: log)
44-
Log.warning("saved in context \(String(describing: self.startingLocation))")
4544
}
4645
var isMobileSession: Bool {
4746
sessionType == .mobile

0 commit comments

Comments
 (0)