Skip to content

Commit 21de54a

Browse files
committed
Remove fatalErroring implementation of init(exactly:)
This is implemented as a default implementation on BinaryFloatingPoint, so the type-level dummy implementation isn't necessary
1 parent 95f70f7 commit 21de54a

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

stdlib/public/core/FloatingPointTypes.swift.gyb

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1488,18 +1488,6 @@ extension ${Self} {
14881488
public var magnitude: ${Self} {
14891489
return ${Self}(_bits: Builtin.int_fabs_FPIEEE${bits}(_value))
14901490
}
1491-
1492-
// FIXME(integers): implement properly
1493-
/// Creates a value that exactly represents the given integer.
1494-
///
1495-
/// If the given integer is outside the representable range of this type or
1496-
/// can't be represented exactly, the result is `nil`.
1497-
///
1498-
/// - Parameter source: The integer to represent as a floating-point value.
1499-
@_inlineable // FIXME(sil-serialize-all)
1500-
public init?<T : BinaryInteger>(exactly source: T) {
1501-
fatalError()
1502-
}
15031491
}
15041492

15051493
extension ${Self} {

0 commit comments

Comments
 (0)