Skip to content

Commit e79c3a7

Browse files
committed
mac14.4
1 parent 3ae86cc commit e79c3a7

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

Diff for: FindMySync/Synchronizer.swift

+1-8
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,6 @@ class Synchronizer {
183183
"BeaconEstimatedLocation")
184184
let sharedBeaconsUrl = searchpartydUrl.appendingPathComponent("SharedBeacons")
185185

186-
let dateFormatter = DateFormatter()
187-
dateFormatter.dateFormat = "yyyy-MM-dd HH:mm:ss ZZZZ"
188186

189187
let fileManager = FileManager.default
190188

@@ -232,9 +230,6 @@ class Synchronizer {
232230
}
233231

234232

235-
print(beaconNames)
236-
print(sharedBeaconMap)
237-
238233
let beaconEstimatedLocations = try fileManager.contentsOfDirectory(
239234
at: beaconEstimatedLocationUrl, includingPropertiesForKeys: nil)
240235
for subDir in beaconEstimatedLocations {
@@ -268,8 +263,7 @@ class Synchronizer {
268263
latitude: NSNumber(value: latitude as! Double)
269264
)
270265

271-
if let timestamp = dateFormatter.date(
272-
from: String(describing: timestamp))
266+
if let timestamp = timestamp as? Date
273267
{
274268
beacon.timestamp = timestamp
275269
}
@@ -295,7 +289,6 @@ class Synchronizer {
295289
beacons[id] = beacon
296290
}
297291

298-
print(beacon)
299292
}
300293
}
301294
}

0 commit comments

Comments
 (0)