Closed sodastsai closed 9 years ago
I found that inn RKConfigureCollisionDetectionCommand class, this method
RKConfigureCollisionDetectionCommand
- (id) initForMethod:(RKCollisionDetectionMethod) method xThreshold:(uint8_t) theXThreshold yThreshold:(uint8_t) theYThreshold xSpeedThreshold:(uint8_t) theXSpeedThreshold ySpeedThreshold:(uint8_t) theYSpeedThreshold postTimeDeadZone:(NSTimeInterval) deadZone;
has been marked as deprecated in the document comment.
I think it's better to add compiler attribute to make the clang compiler notifies developers that this is a deprecated method. clang attributes ref
- (id) initForMethod:(RKCollisionDetectionMethod) method xThreshold:(uint8_t) theXThreshold yThreshold:(uint8_t) theYThreshold xSpeedThreshold:(uint8_t) theXSpeedThreshold ySpeedThreshold:(uint8_t) theYSpeedThreshold postTimeDeadZone:(NSTimeInterval) deadZone __attribute__((deprecated("Use -[RKConfigureCollisionDetectionCommand initForMethod:xThreshold:xSpeedThreshold:yThreshold:ySpeedThreshold:postTimeDeadZone:] instead.")))
Tracked as SDK-662
Included in Beta 3
I found that inn
RKConfigureCollisionDetectionCommand
class, this methodhas been marked as deprecated in the document comment.
I think it's better to add compiler attribute to make the clang compiler notifies developers that this is a deprecated method. clang attributes ref