From cf41852f30b58c55804dc35a93b8326b8794e9bd Mon Sep 17 00:00:00 2001 From: Peter Tang Date: Sat, 30 Sep 2023 15:17:26 +0800 Subject: [PATCH] remove Hashable CGSize --- Sources/SwiftMath/MathBundle/MathImage.swift | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Sources/SwiftMath/MathBundle/MathImage.swift b/Sources/SwiftMath/MathBundle/MathImage.swift index 1adc997..ae14112 100644 --- a/Sources/SwiftMath/MathBundle/MathImage.swift +++ b/Sources/SwiftMath/MathBundle/MathImage.swift @@ -107,12 +107,8 @@ private extension CGAffineTransform { return transform } } -extension CGSize: Hashable { - public func hash(into hasher: inout Hasher) { - hasher.combine(width) - hasher.combine(height) - } - var integral: CGSize { +extension CGSize { + fileprivate var integral: CGSize { CGSize(width: ceil(width), height: ceil(height)) } }