diff --git a/.github/workflows/commit-ci.yml b/.github/workflows/commit-ci.yml index e770200a7..339095617 100644 --- a/.github/workflows/commit-ci.yml +++ b/.github/workflows/commit-ci.yml @@ -29,7 +29,7 @@ jobs: run: brew install peripheryapp/periphery/periphery - name: Check Unused Code - run: periphery scan --skip-build --index-store-path build/Index.noindex/DataStore + run: periphery scan --relative-results --skip-build --index-store-path build/Index.noindex/DataStore - name: Upload Squirrel artifact uses: actions/upload-artifact@v4 diff --git a/.github/workflows/pull-request-ci.yml b/.github/workflows/pull-request-ci.yml index 4ce152efc..f7b1e8b64 100644 --- a/.github/workflows/pull-request-ci.yml +++ b/.github/workflows/pull-request-ci.yml @@ -26,7 +26,7 @@ jobs: run: brew install peripheryapp/periphery/periphery - name: Check Unused Code - run: periphery scan --skip-build --index-store-path build/Index.noindex/DataStore + run: periphery scan --relative-results --skip-build --index-store-path build/Index.noindex/DataStore - name: Upload Squirrel artifact uses: actions/upload-artifact@v4 diff --git a/.github/workflows/release-ci.yml b/.github/workflows/release-ci.yml index 3929ef525..86d66e329 100644 --- a/.github/workflows/release-ci.yml +++ b/.github/workflows/release-ci.yml @@ -34,7 +34,7 @@ jobs: run: brew install peripheryapp/periphery/periphery - name: Check Unused Code - run: periphery scan --skip-build --index-store-path build/Index.noindex/DataStore + run: periphery scan --relative-results --skip-build --index-store-path build/Index.noindex/DataStore - name: Build changelog id: release_log diff --git a/sources/BridgingFunctions.swift b/sources/BridgingFunctions.swift index b45c4e210..a4b15aaa3 100644 --- a/sources/BridgingFunctions.swift +++ b/sources/BridgingFunctions.swift @@ -64,9 +64,6 @@ extension NSRange { } extension NSPoint { - static func + (lhs: Self, rhs: Self) -> Self { - Self.init(x: lhs.x + rhs.x, y: lhs.y + rhs.y) - } static func += (lhs: inout Self, rhs: Self) { lhs.x += rhs.x lhs.y += rhs.y @@ -81,17 +78,9 @@ extension NSPoint { static func * (lhs: Self, rhs: CGFloat) -> Self { Self.init(x: lhs.x * rhs, y: lhs.y * rhs) } - static func *= (lhs: inout Self, rhs: CGFloat) { - lhs.x *= rhs - lhs.y *= rhs - } static func / (lhs: Self, rhs: CGFloat) -> Self { Self.init(x: lhs.x / rhs, y: lhs.y / rhs) } - static func /= (lhs: inout Self, rhs: CGFloat) { - lhs.x /= rhs - lhs.y /= rhs - } var length: CGFloat { sqrt(pow(self.x, 2) + pow(self.y, 2)) } diff --git a/sources/SquirrelView.swift b/sources/SquirrelView.swift index f100a5b81..45fe1e69d 100644 --- a/sources/SquirrelView.swift +++ b/sources/SquirrelView.swift @@ -742,7 +742,7 @@ private extension SquirrelView { let radius = min(0.5 * theme.pagingOffset, 2 * height / 9) let effectiveRadius = min(theme.cornerRadius, 0.6 * radius) guard let trianglePath = drawSmoothLines( - triangle(center: NSPoint(x: 0, y: 0), radius: radius), + triangle(center: .zero, radius: radius), straightCorner: [], alpha: 0.3 * effectiveRadius, beta: 1.4 * effectiveRadius ) else { return (layer, nil, nil)