Skip to content
This repository was archived by the owner on Feb 2, 2023. It is now read-only.

Commit 5ff5a27

Browse files
Adlai Hollerappleguy
authored andcommitted
[ASTextKitComponents] Remove unused, somewhat dangerous functions (#2007)
[ASTextKitComponents] Remove Unused Scale Conversion Functions
1 parent 7426c1d commit 5ff5a27

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

AsyncDisplayKit/TextKit/ASTextKitComponents.h

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,9 @@
1010

1111
#import <UIKit/UIKit.h>
1212
#import <AsyncDisplayKit/ASBaseDefines.h>
13-
#import <tgmath.h>
1413

1514
NS_ASSUME_NONNULL_BEGIN
1615

17-
ASDISPLAYNODE_INLINE CGFloat ceilPixelValueForScale(CGFloat f, CGFloat scale)
18-
{
19-
// Round up to device pixel (.5 on retina)
20-
return ceil(f * scale) / scale;
21-
}
22-
23-
ASDISPLAYNODE_INLINE CGSize ceilSizeValue(CGSize s)
24-
{
25-
CGFloat screenScale = [UIScreen mainScreen].scale;
26-
s.width = ceilPixelValueForScale(s.width, screenScale);
27-
s.height = ceilPixelValueForScale(s.height, screenScale);
28-
return s;
29-
}
30-
3116
@interface ASTextKitComponents : NSObject
3217

3318
/**

0 commit comments

Comments
 (0)