Skip to content

Commit

Permalink
Reverts privatization of method
Browse files Browse the repository at this point in the history
  • Loading branch information
bryceco committed Oct 23, 2021
1 parent 484f884 commit e602f40
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Shared/EditorLayer/EditorMapLayer+Ocean.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 []
}
Expand Down
2 changes: 1 addition & 1 deletion src/Shared/EditorLayer/EditorMapLayer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e602f40

Please sign in to comment.