[ASTextKitComponents] Remove unused, somewhat dangerous functions (#2007)

[ASTextKitComponents] Remove Unused Scale Conversion Functions
This commit is contained in:
Adlai Holler
2016-07-28 20:43:27 -07:00
committed by appleguy
parent 7426c1dd66
commit 5ff5a27717

View File

@@ -10,24 +10,9 @@
#import <UIKit/UIKit.h>
#import <AsyncDisplayKit/ASBaseDefines.h>
#import <tgmath.h>
NS_ASSUME_NONNULL_BEGIN
ASDISPLAYNODE_INLINE CGFloat ceilPixelValueForScale(CGFloat f, CGFloat scale)
{
// Round up to device pixel (.5 on retina)
return ceil(f * scale) / scale;
}
ASDISPLAYNODE_INLINE CGSize ceilSizeValue(CGSize s)
{
CGFloat screenScale = [UIScreen mainScreen].scale;
s.width = ceilPixelValueForScale(s.width, screenScale);
s.height = ceilPixelValueForScale(s.height, screenScale);
return s;
}
@interface ASTextKitComponents : NSObject
/**