Skip to content

Commit

Permalink
style: 移除无用代码
Browse files Browse the repository at this point in the history
  • Loading branch information
937447974 committed Nov 22, 2018
1 parent 5d4358d commit 6468e84
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion Cocoa/AppFrameworks/Foundation/Timer/YJNSTimer.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
//

#import <Foundation/Foundation.h>
#import "YJNSCalendar.h"

NS_ASSUME_NONNULL_BEGIN

Expand Down
4 changes: 1 addition & 3 deletions Cocoa/AppFrameworks/Foundation/Timer/YJNSTimer.m
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ @interface YJNSTimer ()
@property (nonatomic, weak) id target; ///< 弱引用目标
@property (nonatomic, copy) YJNSTimerSuccess success; ///< 成功回调

@property (nonatomic, strong) NSTimer *timer; ///< 计时器
@property (nonatomic, strong) YJNSCalendar *calendar; ///< 日历
@property (nonatomic, strong) NSTimer *timer; ///< 计时器

@end

Expand All @@ -40,7 +39,6 @@ + (instancetype)timerIdentifier:(NSString *)identifier target:(NSObject *)target
timer = [[YJNSTimer alloc] init];
timer.identifier = identifier;
timer.timeInterval = 1;
timer.calendar = [[YJNSCalendar alloc] init];
}
[tDict setObject:timer forKey:timer.identifier];
timer.target = target;
Expand Down
1 change: 0 additions & 1 deletion Developer/YJCocoa/YJCocoa/ViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
//

#import "ViewController.h"
#import "YJCocoa.h"

@interface ViewController ()

Expand Down

0 comments on commit 6468e84

Please sign in to comment.