|
1 | 1 | // This source file is part of the Swift.org open source project |
2 | 2 | // |
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 |
4 | 4 | // Licensed under Apache License v2.0 with Runtime Library Exception |
5 | 5 | // |
6 | 6 | // See http://swift.org/LICENSE.txt for license information |
@@ -631,30 +631,6 @@ extension CGFloat : Strideable { |
631 | 631 | // Deprecated operators |
632 | 632 | //===----------------------------------------------------------------------===// |
633 | 633 |
|
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 | | - |
658 | 634 | @available(*, unavailable, message: "Use truncatingRemainder instead") |
659 | 635 | public func %(lhs: CGFloat, rhs: CGFloat) -> CGFloat { |
660 | 636 | fatalError("% is not available.") |
|
0 commit comments