Remove unused positiveAngles and negativeAngles arrays from map centre calculator service.

I forgot to remove these when I was refactoring this earlier.
This commit is contained in:
Cillian O'Ruanaidh
2020-08-03 15:12:40 +01:00
parent 702669e61c
commit e6ab2ae753

View File

@@ -14,16 +14,10 @@ Darkswarm.factory 'MapCentreCalculator', (Enterprises, openStreetMapConfig) ->
openStreetMapConfig.open_street_map_default_longitude
_calculate: (angleName, coordinates) =>
positiveAngles = []
negativeAngles = []
angles = []
for coordinate in coordinates
angles.push(coordinate[angleName])
if coordinate[angleName] > 0
positiveAngles.push(coordinate[angleName])
else
negativeAngles.push(coordinate[angleName])
minimumAngle = Math.min.apply(null, angles)
maximumAngle = Math.max.apply(null, angles)