mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-05-30 13:38:30 +00:00
remove unused code
This commit is contained in:
@@ -25,6 +25,4 @@
|
||||
@property (nonatomic, assign) CGFloat strokeDashoffset;
|
||||
@property (nonatomic, assign) CGMutablePathRef nodeArea;
|
||||
|
||||
- (CGFloat)getActualProp:(NSDictionary *) prop relative:(float)relative;
|
||||
|
||||
@end
|
||||
|
||||
@@ -91,16 +91,6 @@
|
||||
CGContextRestoreGState(context);
|
||||
}
|
||||
|
||||
- (CGFloat)getActualProp:(NSDictionary *) prop relative:(float)relative
|
||||
{
|
||||
CGFloat value = [[prop objectForKey:@"value"] floatValue];
|
||||
if ([[prop objectForKey:@"percentage"] integerValue] == 1) {
|
||||
return relative * value;
|
||||
} else {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
|
||||
// hitTest delagate
|
||||
- (UIView *)hitTest:(CGPoint)point
|
||||
withEvent:(UIEvent *)event
|
||||
|
||||
@@ -70,9 +70,4 @@
|
||||
return path;
|
||||
}
|
||||
|
||||
- (CGFloat)getActualProp:(NSString *)name relative:(float)relative
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@@ -24,6 +24,4 @@ RCT_EXPORT_VIEW_PROPERTY(alignment, CTTextAlignment)
|
||||
RCT_REMAP_VIEW_PROPERTY(frame, textFrame, RNSVGTextFrame)
|
||||
RCT_EXPORT_VIEW_PROPERTY(path, CGPath)
|
||||
|
||||
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user