Skip to content

Commit 7e6647d

Browse files
authored
Merge pull request #1632 from rudkx/remove-unavailable-inc-dec-for-cgfloat
Remove unavailable overloads of ++/-- for CGFloat.
2 parents 91e5c25 + 322088a commit 7e6647d

File tree

1 file changed

+1
-25
lines changed

1 file changed

+1
-25
lines changed

Foundation/CGFloat.swift

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// This source file is part of the Swift.org open source project
22
//
3-
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
3+
// Copyright (c) 2014 - 2016, 2018 Apple Inc. and the Swift project authors
44
// Licensed under Apache License v2.0 with Runtime Library Exception
55
//
66
// See http://swift.org/LICENSE.txt for license information
@@ -631,30 +631,6 @@ extension CGFloat : Strideable {
631631
// Deprecated operators
632632
//===----------------------------------------------------------------------===//
633633

634-
@available(*, unavailable, message: "use += 1")
635-
@discardableResult
636-
public prefix func ++(rhs: inout CGFloat) -> CGFloat {
637-
fatalError("++ is not available")
638-
}
639-
640-
@available(*, unavailable, message: "use -= 1")
641-
@discardableResult
642-
public prefix func --(rhs: inout CGFloat) -> CGFloat {
643-
fatalError("-- is not available")
644-
}
645-
646-
@available(*, unavailable, message: "use += 1")
647-
@discardableResult
648-
public postfix func ++(lhs: inout CGFloat) -> CGFloat {
649-
fatalError("++ is not available")
650-
}
651-
652-
@available(*, unavailable, message: "use -= 1")
653-
@discardableResult
654-
public postfix func --(lhs: inout CGFloat) -> CGFloat {
655-
fatalError("-- is not available")
656-
}
657-
658634
@available(*, unavailable, message: "Use truncatingRemainder instead")
659635
public func %(lhs: CGFloat, rhs: CGFloat) -> CGFloat {
660636
fatalError("% is not available.")

0 commit comments

Comments
 (0)