From 248b325595013fe6befb8ad6541c4f3b51bba733 Mon Sep 17 00:00:00 2001 From: arkin Date: Tue, 14 Nov 2017 15:50:57 +0800 Subject: [PATCH] remove unnecessary newlines --- lottie-ios/Classes/AnimatableLayers/LOTCompositionContainer.m | 1 - lottie-ios/Classes/AnimatableLayers/LOTLayerContainer.m | 3 +-- lottie-ios/Classes/Extensions/LOTBezierPath.m | 1 - lottie-ios/Classes/Models/LOTAsset.m | 2 -- lottie-ios/Classes/Models/LOTShapeTransform.m | 1 - lottie-ios/Classes/Private/LOTAnimatedSwitch.m | 1 - lottie-ios/Classes/Private/LOTAnimationView.m | 2 -- lottie-ios/Classes/Private/LOTComposition.m | 1 - lottie-ios/Classes/PublicHeaders/LOTComposition.h | 1 - .../Classes/RenderSystem/AnimatorNodes/LOTPathAnimator.m | 1 - .../RenderSystem/AnimatorNodes/LOTRoundedRectAnimator.m | 2 -- .../RenderSystem/InterpolatorNodes/LOTValueInterpolator.m | 3 +-- 12 files changed, 2 insertions(+), 17 deletions(-) diff --git a/lottie-ios/Classes/AnimatableLayers/LOTCompositionContainer.m b/lottie-ios/Classes/AnimatableLayers/LOTCompositionContainer.m index 6404e9de85..3aa06aa94e 100644 --- a/lottie-ios/Classes/AnimatableLayers/LOTCompositionContainer.m +++ b/lottie-ios/Classes/AnimatableLayers/LOTCompositionContainer.m @@ -90,7 +90,6 @@ } if (ENABLE_DEBUG_LOGGING) NSLog(@"-------------------- ------------------------------- --------------------"); if (ENABLE_DEBUG_LOGGING) NSLog(@"-------------------- ------------------------------- --------------------"); - } - (BOOL)setValue:(nonnull id)value diff --git a/lottie-ios/Classes/AnimatableLayers/LOTLayerContainer.m b/lottie-ios/Classes/AnimatableLayers/LOTLayerContainer.m index e989490c29..0e4303bd9a 100644 --- a/lottie-ios/Classes/AnimatableLayers/LOTLayerContainer.m +++ b/lottie-ios/Classes/AnimatableLayers/LOTLayerContainer.m @@ -297,8 +297,7 @@ } - (void)logHierarchyKeypathsWithParent:(NSString * _Nullable)parent { - [_contentsGroup logHierarchyKeypathsWithParent:parent - ]; + [_contentsGroup logHierarchyKeypathsWithParent:parent]; } @end diff --git a/lottie-ios/Classes/Extensions/LOTBezierPath.m b/lottie-ios/Classes/Extensions/LOTBezierPath.m index 3896f6d050..b534d5b641 100644 --- a/lottie-ios/Classes/Extensions/LOTBezierPath.m +++ b/lottie-ios/Classes/Extensions/LOTBezierPath.m @@ -233,7 +233,6 @@ struct LOT_Subpath { nextSubpath = nextSubpath->nextSubpath; } - } - (void)trimPathFromT:(CGFloat)fromT toT:(CGFloat)toT offset:(CGFloat)offset { diff --git a/lottie-ios/Classes/Models/LOTAsset.m b/lottie-ios/Classes/Models/LOTAsset.m index 27c84822a1..7a25cf5e3a 100644 --- a/lottie-ios/Classes/Models/LOTAsset.m +++ b/lottie-ios/Classes/Models/LOTAsset.m @@ -25,7 +25,6 @@ return self; } - - (void)_mapFromJSON:(NSDictionary *)jsonDictionary withAssetGroup:(LOTAssetGroup * _Nullable)assetGroup { _referenceID = [jsonDictionary[@"id"] copy]; @@ -51,7 +50,6 @@ _layerGroup = [[LOTLayerGroup alloc] initWithLayerJSON:layersJSON withAssetGroup:assetGroup]; } - } @end diff --git a/lottie-ios/Classes/Models/LOTShapeTransform.m b/lottie-ios/Classes/Models/LOTShapeTransform.m index e0b54c36b4..aabafa2151 100644 --- a/lottie-ios/Classes/Models/LOTShapeTransform.m +++ b/lottie-ios/Classes/Models/LOTShapeTransform.m @@ -69,7 +69,6 @@ if (hasSkew || hasSkewAxis) { NSLog(@"%s: Warning: skew is not supported: %@", __PRETTY_FUNCTION__, name); } - } - (NSString *)description { diff --git a/lottie-ios/Classes/Private/LOTAnimatedSwitch.m b/lottie-ios/Classes/Private/LOTAnimatedSwitch.m index e406eb7c63..d0ab88f5b4 100644 --- a/lottie-ios/Classes/Private/LOTAnimatedSwitch.m +++ b/lottie-ios/Classes/Private/LOTAnimatedSwitch.m @@ -103,7 +103,6 @@ } else { self.animationView.animationProgress = endProgress; } - } - (NSString *)accessibilityValue { diff --git a/lottie-ios/Classes/Private/LOTAnimationView.m b/lottie-ios/Classes/Private/LOTAnimationView.m index 9e80698590..c2f1678b6a 100644 --- a/lottie-ios/Classes/Private/LOTAnimationView.m +++ b/lottie-ios/Classes/Private/LOTAnimationView.m @@ -382,7 +382,6 @@ static NSString * const kCompContainerAnimationKey = @"play"; } } - - (void)setLoopAnimation:(BOOL)loopAnimation { _loopAnimation = loopAnimation; if (_isAnimationPlaying && _sceneModel) { @@ -457,7 +456,6 @@ static NSString * const kCompContainerAnimationKey = @"play"; return [_compContainer convertRect:rect fromLayer:self.layer toLayerNamed:layerName]; } - - (void)setValue:(nonnull id)value forKeypath:(nonnull NSString *)keypath atFrame:(nullable NSNumber *)frame{ diff --git a/lottie-ios/Classes/Private/LOTComposition.m b/lottie-ios/Classes/Private/LOTComposition.m index 3bfe947ebb..d8edcc0410 100644 --- a/lottie-ios/Classes/Private/LOTComposition.m +++ b/lottie-ios/Classes/Private/LOTComposition.m @@ -122,7 +122,6 @@ } [_assetGroup finalizeInitialization]; - } - (void)setRootDirectory:(NSString *)rootDirectory { diff --git a/lottie-ios/Classes/PublicHeaders/LOTComposition.h b/lottie-ios/Classes/PublicHeaders/LOTComposition.h index 1cbea1a2ff..2a8ec7fcbc 100644 --- a/lottie-ios/Classes/PublicHeaders/LOTComposition.h +++ b/lottie-ios/Classes/PublicHeaders/LOTComposition.h @@ -32,7 +32,6 @@ + (nonnull instancetype)animationFromJSON:(nullable NSDictionary *)animationJSON inBundle:(nullable NSBundle *)bundle NS_SWIFT_NAME(init(json:bundle:)); - - (instancetype _Nonnull)initWithJSON:(NSDictionary * _Nullable)jsonDictionary withAssetBundle:(NSBundle * _Nullable)bundle; diff --git a/lottie-ios/Classes/RenderSystem/AnimatorNodes/LOTPathAnimator.m b/lottie-ios/Classes/RenderSystem/AnimatorNodes/LOTPathAnimator.m index c1bf77ee7b..2c0662ad87 100644 --- a/lottie-ios/Classes/RenderSystem/AnimatorNodes/LOTPathAnimator.m +++ b/lottie-ios/Classes/RenderSystem/AnimatorNodes/LOTPathAnimator.m @@ -30,7 +30,6 @@ - (BOOL)needsUpdateForFrame:(NSNumber *)frame { return [_interpolator hasUpdateForFrame:frame]; - } - (void)performLocalUpdate { diff --git a/lottie-ios/Classes/RenderSystem/AnimatorNodes/LOTRoundedRectAnimator.m b/lottie-ios/Classes/RenderSystem/AnimatorNodes/LOTRoundedRectAnimator.m index bec729354a..30209d9fce 100644 --- a/lottie-ios/Classes/RenderSystem/AnimatorNodes/LOTRoundedRectAnimator.m +++ b/lottie-ios/Classes/RenderSystem/AnimatorNodes/LOTRoundedRectAnimator.m @@ -144,6 +144,4 @@ self.localPath = path1; } - - @end diff --git a/lottie-ios/Classes/RenderSystem/InterpolatorNodes/LOTValueInterpolator.m b/lottie-ios/Classes/RenderSystem/InterpolatorNodes/LOTValueInterpolator.m index 3265522c01..4f332e5c4b 100644 --- a/lottie-ios/Classes/RenderSystem/InterpolatorNodes/LOTValueInterpolator.m +++ b/lottie-ios/Classes/RenderSystem/InterpolatorNodes/LOTValueInterpolator.m @@ -15,8 +15,7 @@ @end -@implementation LOTValueInterpolator { -} +@implementation LOTValueInterpolator - (instancetype)initWithKeyframes:(NSArray *)keyframes { self = [super init];