Skip to content

Commit 970bd31

Browse files
authored
Remove CoreGraphics (#35)
* -remove CoreGraphics * Update Utils.swift
1 parent fa3d278 commit 970bd31

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

Sources/Prometheus/Utils.swift

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
import Foundation
22

3-
#if os(iOS) || os(watchOS) || os(tvOS)
4-
import CoreGraphics
5-
#endif
6-
73
/// Empty labels class
84
public struct EmptyLabels: MetricLabels {
95
/// Creates empty labels
@@ -76,8 +72,6 @@ public extension ConvertibleNumberType {
7672
var floatValue: Float { return Float(doubleValue) }
7773
/// Number as an Int
7874
var intValue: Int { return lrint(doubleValue) }
79-
/// Number as a CGFloat
80-
var CGFloatValue: CGFloat { return CGFloat(doubleValue) }
8175
}
8276

8377
/// Double Representable Conformance
@@ -91,8 +85,6 @@ extension FixedWidthInteger {
9185
/// Double Representable Conformance
9286
extension Double: ConvertibleNumberType { public var doubleValue: Double { return self }}
9387
/// Double Representable Conformance
94-
extension CGFloat: ConvertibleNumberType { public var doubleValue: Double { return Double(self) }}
95-
/// Double Representable Conformance
9688
extension Float: ConvertibleNumberType { public var doubleValue: Double { return Double(self) }}
9789
/// Double Representable Conformance
9890
extension Int: ConvertibleNumberType { }

0 commit comments

Comments
 (0)