From e602f40bbc6dcbd5c379803646d81ea88ebfb040 Mon Sep 17 00:00:00 2001 From: Bryce Cogswell Date: Sat, 23 Oct 2021 14:40:10 -0700 Subject: [PATCH] Reverts privatization of method --- src/Shared/EditorLayer/EditorMapLayer+Ocean.swift | 2 +- src/Shared/EditorLayer/EditorMapLayer.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Shared/EditorLayer/EditorMapLayer+Ocean.swift b/src/Shared/EditorLayer/EditorMapLayer+Ocean.swift index 55be86dac..840755743 100644 --- a/src/Shared/EditorLayer/EditorMapLayer+Ocean.swift +++ b/src/Shared/EditorLayer/EditorMapLayer+Ocean.swift @@ -118,7 +118,7 @@ extension EditorMapLayer { return index >= 0 } - private static func ClipLineToRect(p1: OSMPoint, p2: OSMPoint, rect: OSMRect) -> [OSMPoint] { + static func ClipLineToRect(p1: OSMPoint, p2: OSMPoint, rect: OSMRect) -> [OSMPoint] { if p1.x.isInfinite || p2.x.isInfinite { return [] } diff --git a/src/Shared/EditorLayer/EditorMapLayer.swift b/src/Shared/EditorLayer/EditorMapLayer.swift index 226a5adcb..0277de3c0 100644 --- a/src/Shared/EditorLayer/EditorMapLayer.swift +++ b/src/Shared/EditorLayer/EditorMapLayer.swift @@ -430,7 +430,7 @@ final class EditorMapLayer: CALayer { var cross: [OSMPoint] = [] if !(prevInside && inside) { // at least one point was outside, so determine where line intersects the screen - cross = EditorMapLayer.ClipLineToRect(p1: prev, p2: pt, rect: viewRect) + cross = Self.ClipLineToRect(p1: prev, p2: pt, rect: viewRect) if cross.isEmpty { // both are outside and didn't cross continue