Skip to content

Commit

Permalink
remove some useless ; in declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
rmottola committed Sep 20, 2023
1 parent 92ef305 commit 0547b18
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions Source/NSIndexPath.m
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ + (id) indexPathWithIndexes: (NSUInteger*)indexes length: (NSUInteger)length
return AUTORELEASE(o);
}

+ (NSIndexPath *) indexPathForItem: (NSInteger)item inSection: (NSInteger)section;
+ (NSIndexPath *) indexPathForItem: (NSInteger)item inSection: (NSInteger)section
{
NSUInteger idxs[2];

Expand All @@ -74,7 +74,7 @@ + (NSIndexPath *) indexPathForItem: (NSInteger)item inSection: (NSInteger)sectio
return [self indexPathWithIndexes: idxs length: 2];
}

+ (NSIndexPath *) indexPathForRow: (NSInteger)row inSection: (NSInteger)section;
+ (NSIndexPath *) indexPathForRow: (NSInteger)row inSection: (NSInteger)section
{
NSUInteger idxs[2];

Expand Down
12 changes: 6 additions & 6 deletions Source/NSMassFormatter.m
Original file line number Diff line number Diff line change
Expand Up @@ -58,22 +58,22 @@ - (NSFormattingUnitStyle) unitStyle
return _unitStyle;
}

- (void) setUnitStyle: (NSFormattingUnitStyle)style;
- (void) setUnitStyle: (NSFormattingUnitStyle)style
{
_unitStyle = style;
}

- (BOOL) isForPersonMassUse;
- (BOOL) isForPersonMassUse
{
return _isForPersonMassUse;
}

- (void) setForPersonMassUse: (BOOL)flag;
- (void) setForPersonMassUse: (BOOL)flag
{
_isForPersonMassUse = flag;
}

- (NSString *) stringFromValue: (double)value unit: (NSMassFormatterUnit)unit;
- (NSString *) stringFromValue: (double)value unit: (NSMassFormatterUnit)unit
{
NSUnit *u = nil;
NSMeasurement *m = nil;
Expand Down Expand Up @@ -109,12 +109,12 @@ - (NSString *) stringFromValue: (double)value unit: (NSMassFormatterUnit)unit;
return [mf stringFromMeasurement: m];
}

- (NSString *) stringFromKilograms: (double)numberInKilograms;
- (NSString *) stringFromKilograms: (double)numberInKilograms
{
return [self stringFromValue: numberInKilograms unit: NSMassFormatterUnitKilogram];
}

- (NSString *) unitStringFromValue: (double)value unit: (NSMassFormatterUnit)unit;
- (NSString *) unitStringFromValue: (double)value unit: (NSMassFormatterUnit)unit
{
return [self stringFromValue: value unit: unit];
}
Expand Down
2 changes: 1 addition & 1 deletion Source/NSOperation.m
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ - (BOOL) isReady
return internal->ready;
}

- (void) main;
- (void) main
{
return; // OSX default implementation does nothing
}
Expand Down
4 changes: 2 additions & 2 deletions Source/NSPredicate.m
Original file line number Diff line number Diff line change
Expand Up @@ -384,13 +384,13 @@ - (Class) classForCoder
return [NSPredicate class];
}

- (void) encodeWithCoder: (NSCoder *) coder;
- (void) encodeWithCoder: (NSCoder *) coder
{
// FIXME
[self subclassResponsibility: _cmd];
}

- (id) initWithCoder: (NSCoder *) coder;
- (id) initWithCoder: (NSCoder *) coder
{
// FIXME
[self subclassResponsibility: _cmd];
Expand Down
2 changes: 1 addition & 1 deletion Source/NSProgress.m
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ - (void)setUserInfoObject: (id)obj
}

// Instance property accessors...
- (void) setFileOperationKind: (NSProgressFileOperationKind)k;
- (void) setFileOperationKind: (NSProgressFileOperationKind)k
{
ASSIGN(internal->_fileOperationKind, k);
}
Expand Down
2 changes: 1 addition & 1 deletion Source/NSURLSession.m
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ - (NSURLSessionUploadTask*) uploadTaskWithRequest: (NSURLRequest*)request
}

- (NSURLSessionUploadTask*) uploadTaskWithRequest: (NSURLRequest*)request
fromData: (NSData*)bodyData;
fromData: (NSData*)bodyData
{
return [self notImplemented: _cmd];
}
Expand Down

0 comments on commit 0547b18

Please sign in to comment.