@@ -643,21 +643,6 @@ open class NSCalendar : NSObject, NSCopying, NSSecureCoding {
643
643
} else {
644
644
dayValuePointer? . pointee = NSDateComponentUndefined
645
645
}
646
- if let value = comps. year {
647
- yearValuePointer? . pointee = value
648
- } else {
649
- yearValuePointer? . pointee = NSDateComponentUndefined
650
- }
651
- if let value = comps. month {
652
- monthValuePointer? . pointee = value
653
- } else {
654
- monthValuePointer? . pointee = NSDateComponentUndefined
655
- }
656
- if let value = comps. day {
657
- dayValuePointer? . pointee = value
658
- } else {
659
- dayValuePointer? . pointee = NSDateComponentUndefined
660
- }
661
646
}
662
647
663
648
/*
@@ -686,21 +671,6 @@ open class NSCalendar : NSObject, NSCopying, NSSecureCoding {
686
671
} else {
687
672
weekdayValuePointer? . pointee = NSDateComponentUndefined
688
673
}
689
- if let value = comps. yearForWeekOfYear {
690
- yearValuePointer? . pointee = value
691
- } else {
692
- yearValuePointer? . pointee = NSDateComponentUndefined
693
- }
694
- if let value = comps. weekOfYear {
695
- weekValuePointer? . pointee = value
696
- } else {
697
- weekValuePointer? . pointee = NSDateComponentUndefined
698
- }
699
- if let value = comps. weekday {
700
- weekdayValuePointer? . pointee = value
701
- } else {
702
- weekdayValuePointer? . pointee = NSDateComponentUndefined
703
- }
704
674
}
705
675
706
676
/*
@@ -729,21 +699,6 @@ open class NSCalendar : NSObject, NSCopying, NSSecureCoding {
729
699
} else {
730
700
nanosecondValuePointer? . pointee = NSDateComponentUndefined
731
701
}
732
- if let value = comps. minute {
733
- minuteValuePointer? . pointee = value
734
- } else {
735
- minuteValuePointer? . pointee = NSDateComponentUndefined
736
- }
737
- if let value = comps. second {
738
- secondValuePointer? . pointee = value
739
- } else {
740
- secondValuePointer? . pointee = NSDateComponentUndefined
741
- }
742
- if let value = comps. nanosecond {
743
- nanosecondValuePointer? . pointee = value
744
- } else {
745
- nanosecondValuePointer? . pointee = NSDateComponentUndefined
746
- }
747
702
}
748
703
749
704
/*
0 commit comments