Skip to content

Commit

Permalink
Delete unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
dfed committed Oct 30, 2024
1 parent f90f96a commit 95aaa86
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions Paralayout/PixelRounding.swift
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,6 @@ extension CGFloat {

// MARK: - Private Methods

@MainActor
private func adjustedToPixel(_ scaleFactor: ScaleFactorProviding, _ adjustment: (CGFloat) -> CGFloat) -> CGFloat {
adjustedToPixel(scaleFactor.pixelsPerPoint, adjustment)
}

private func adjustedToPixel(_ scale: CGFloat, _ adjustment: (CGFloat) -> CGFloat) -> CGFloat {
(scale > 0.0) ? (adjustment(self * scale) / scale) : self
}
Expand Down

0 comments on commit 95aaa86

Please sign in to comment.