Skip to content

Commit

Permalink
Get rid of extraneous semicolons.
Browse files Browse the repository at this point in the history
  • Loading branch information
jshier committed Apr 16, 2011
1 parent e491007 commit f854f68
Show file tree
Hide file tree
Showing 18 changed files with 34 additions and 34 deletions.
2 changes: 1 addition & 1 deletion Archiving/Animation Exporters/PXSpriteSheetExporter.m
Expand Up @@ -137,7 +137,7 @@ - (void)windowDidLoad
[self updatePreview:self];
}

- (void)savePanelDidEnd:(NSSavePanel *)sheet returnCode:(int)returnCode contextInfo:(void *)contextInfo;
- (void)savePanelDidEnd:(NSSavePanel *)sheet returnCode:(int)returnCode contextInfo:(void *)contextInfo
{
if (returnCode == NSCancelButton) {
closeOnEndSheet = NO;
Expand Down
4 changes: 2 additions & 2 deletions Other Sources/Foreign Code/CTGradient/CTGradient.m
Expand Up @@ -776,7 +776,7 @@ - (void)radialFillBezierPath:(NSBezierPath *)path


#pragma mark Private Methods
- (void)setBlendingMode:(CTGradientBlendingMode)mode;
- (void)setBlendingMode:(CTGradientBlendingMode)mode
{
blendingMode = mode;

Expand Down Expand Up @@ -927,7 +927,7 @@ - (CTGradientElement)removeElementAtPosition:(CGFloat)position
}


- (CTGradientElement *)elementAtIndex:(unsigned)index;
- (CTGradientElement *)elementAtIndex:(unsigned)index
{
unsigned count = 0;
CTGradientElement *currentElement = elementList;
Expand Down
2 changes: 1 addition & 1 deletion Other Sources/Foreign Code/ThreadWorker/ThreadWorker.m
Expand Up @@ -51,7 +51,7 @@ @implementation ThreadWorker
+ (ThreadWorker *) workOn:(id)target
withSelector:(SEL)selector
withObject:(id)argument
didEndSelector:(SEL)didEndSelector; // Optional
didEndSelector:(SEL)didEndSelector // Optional
{
ThreadWorker *tw;
NSPort *port1;
Expand Down
4 changes: 2 additions & 2 deletions Other Sources/Foreign Code/Wacom/TabletEvents.m
Expand Up @@ -322,7 +322,7 @@ - (float) scaledTabletPressure


//////////////////////////////////////////////////////////////////////////////
- (float) rotationInDegrees; /* 0.0¡ <-> +359.99999¡ */
- (float) rotationInDegrees /* 0.0¡ <-> +359.99999¡ */
{
OSStatus result;
TabletPointerRec tabletData;
Expand All @@ -345,7 +345,7 @@ - (float) scaledTabletPressure


//////////////////////////////////////////////////////////////////////////////
- (float) rotationInRadians; /* 0 <-> 2¹ */
- (float) rotationInRadians /* 0 <-> 2¹ */
{
OSStatus result;
TabletPointerRec tabletData;
Expand Down
2 changes: 1 addition & 1 deletion Pixel Art Core/Canvas/PXCanvasView.m
Expand Up @@ -306,7 +306,7 @@ - (void)setShouldDrawMainBackground:(BOOL)newShouldDrawBG
}
}

- (void)setShouldDrawGrid:(BOOL)newShouldDraw;
- (void)setShouldDrawGrid:(BOOL)newShouldDraw
{
shouldDrawGrid = newShouldDraw;
}
Expand Down
2 changes: 1 addition & 1 deletion Pixel Art Core/Canvas/PXCanvas_Modifying.m
Expand Up @@ -204,7 +204,7 @@ - (void)reduceColorsTo:(NSUInteger)colors withTransparency:(BOOL)transparency ma
+(void)reduceColorsInCanvases:(NSArray*)canvases
toColorCount:(NSUInteger)colors
withTransparency:(BOOL)transparency
matteColor:(NSColor *)matteColor;
matteColor:(NSColor *)matteColor
{
PXCanvas *first = [canvases objectAtIndex:0];
unsigned char *red = calloc([first size].width * [first size].height * [canvases count], sizeof(unsigned char));
Expand Down
2 changes: 1 addition & 1 deletion Pixel Art Core/Grid/PXGrid.m
Expand Up @@ -39,7 +39,7 @@ -(id) init

-(id) initWithUnitSize:(NSSize)newUnitSize
color:(NSColor*)newColor
shouldDraw:(BOOL)newShouldDraw;
shouldDraw:(BOOL)newShouldDraw
{
[self init];
if(newColor)
Expand Down
2 changes: 1 addition & 1 deletion Pixen Application/Application/PXDocument.m
Expand Up @@ -88,7 +88,7 @@ - (void)setFileURL:(NSURL *)fileName
[[NSNotificationCenter defaultCenter] postNotificationName:PXDocumentChangedDisplayNameNotificationName object:self];
}

- (PXCanvasWindowController *)windowController;
- (PXCanvasWindowController *)windowController
{
return windowController;
}
Expand Down
Expand Up @@ -42,7 +42,7 @@ - (NSString *)backgroundTypeText
return backgroundTypeText;
}

- (void)setBackgroundTypeText:(NSString *)typeText;
- (void)setBackgroundTypeText:(NSString *)typeText
{
[backgroundTypeText autorelease];
backgroundTypeText = [typeText retain];
Expand Down
Expand Up @@ -152,7 +152,7 @@ - (void)setCachedImage:(NSImage *)image
[self setNeedsDisplay:YES];
}

- backgroundColor;
- backgroundColor
{
return backgroundColor;
}
Expand Down Expand Up @@ -214,18 +214,18 @@ - (BOOL)acceptsFirstResponder
return YES;
}

- (int)leftOffset;
- (int)leftOffset
{
return position.x;
}
- (void)setLeftOffset:(int)nx;
- (void)setLeftOffset:(int)nx
{
[self willChangeValueForKey:@"rightOffset"];
position.x = nx;
[self didChangeValueForKey:@"rightOffset"];
[self setNeedsDisplay:YES];
}
- (int)topOffset;
- (int)topOffset
{
return position.y;
}
Expand All @@ -236,7 +236,7 @@ - (void)setTopOffset:(int)nv
[self didChangeValueForKey:@"bottomOffset"];
[self setNeedsDisplay:YES];
}
- (int)bottomOffset;
- (int)bottomOffset
{
return -1 * position.y;
}
Expand All @@ -247,7 +247,7 @@ - (void)setBottomOffset:(int)nv
[self didChangeValueForKey:@"topOffset"];
[self setNeedsDisplay:YES];
}
- (int)rightOffset;
- (int)rightOffset
{
return -1 * position.x;
}
Expand Down
6 changes: 3 additions & 3 deletions Pixen Application/Canvas/PXCanvasWindowController.m
Expand Up @@ -67,12 +67,12 @@ - (id) initWithWindowNibName:name
return self;
}

- (RBSplitSubview*)layerSplit;
- (RBSplitSubview*)layerSplit
{
return layerSplit;
}

- (RBSplitSubview*)canvasSplit;
- (RBSplitSubview*)canvasSplit
{
return canvasSplit;
}
Expand Down Expand Up @@ -280,7 +280,7 @@ - (BOOL)validateMenuItem:(NSMenuItem *)anItem

//this is to fix a bug in animation documents where expanding the
//split subview trashes the dimensions of the layer control view
- (void)splitView:(RBSplitView*)sender didExpand:(RBSplitSubview*)subview;
- (void)splitView:(RBSplitView*)sender didExpand:(RBSplitSubview*)subview
{
[self updateFrameSizes];
}
Expand Down
4 changes: 2 additions & 2 deletions Pixen Application/Layers/PXLayerController.m
Expand Up @@ -108,7 +108,7 @@ - (void)resetViewHiddenStatus
}
}

- (NSView *)view;
- (NSView *)view
{
return view;
}
Expand Down Expand Up @@ -254,7 +254,7 @@ - (void)tableView:(NSTableView *)aTableView
}
}

- (void)setSubview:(RBSplitSubview *)sv;
- (void)setSubview:(RBSplitSubview *)sv
{
subview = sv;
}
Expand Down
6 changes: 3 additions & 3 deletions Pixen Application/Palette/PXPaletteController.h
Expand Up @@ -30,9 +30,9 @@ typedef enum {
- (BOOL)isPaletteIndexKey:(NSEvent *)event;
- (void)keyDown:(NSEvent *)event;

- (IBAction)useMostRecentColors:sender;
- (IBAction)useMostFrequentColors:sender;
- (IBAction)useColorListColors:sender;
- (IBAction)useMostRecentColors:(id)sender;
- (IBAction)useMostFrequentColors:(id)sender;
- (IBAction)useColorListColors:(id)sender;

- (void)refreshPalette:(NSNotification *)note;
- (void)updatePalette:(NSNotification *)note;
Expand Down
10 changes: 5 additions & 5 deletions Pixen Application/Palette/PXPaletteController.m
Expand Up @@ -116,7 +116,7 @@ - (void)updatePalette:(NSNotification *)note
[paletteView setNeedsDisplay:YES];
}

- (void)useColorAtIndex:(unsigned)index event:(NSEvent *)e;
- (void)useColorAtIndex:(unsigned)index event:(NSEvent *)e
{
PXToolSwitcher *switcher = [[PXToolPaletteController sharedToolPaletteController] leftSwitcher];
if([e buttonNumber] == 1 || ([e modifierFlags] & NSControlKeyMask))
Expand All @@ -126,7 +126,7 @@ - (void)useColorAtIndex:(unsigned)index event:(NSEvent *)e;
[switcher setColor:PXPalette_colorAtIndex(frequencyPalette, index)];
}

- (void)modifyColorAtIndex:(unsigned)index;
- (void)modifyColorAtIndex:(unsigned)index
{
//FIXME: put palette adds here
}
Expand All @@ -151,19 +151,19 @@ - (void)keyDown:(NSEvent *)event
[self useColorAtIndex:index event:event];
}

- (IBAction)useMostRecentColors:sender;
- (IBAction)useMostRecentColors:(id)sender
{
mode = PXPaletteModeRecent;
[paletteView setPalette:recentPalette];
}

- (IBAction)useMostFrequentColors:sender;
- (IBAction)useMostFrequentColors:(id)sender
{
mode = PXPaletteModeFrequency;
[paletteView setPalette:frequencyPalette];
}

- (IBAction)useColorListColors:sender;
- (IBAction)useColorListColors:(id)sender
{
mode = PXPaletteModeColorList;
}
Expand Down
2 changes: 1 addition & 1 deletion Pixen Application/Preferences/PXHotkeyFormatter.m
Expand Up @@ -74,7 +74,7 @@ - (BOOL)isPartialStringValid:(NSString *)partialString

- (BOOL)getObjectValue:(id *)anObject
forString:(NSString *) string
errorDescription:(NSString **)error;
errorDescription:(NSString **)error
{
*anObject = [[string copy] autorelease];
return YES;
Expand Down
Expand Up @@ -214,7 +214,7 @@ -(void) awakeFromNib
keyMask = 0x0;
}

- (void)clearBeziers;
- (void)clearBeziers
{
[rightSwitcher clearBeziers];
[leftSwitcher clearBeziers];
Expand Down
2 changes: 1 addition & 1 deletion Pixen Application/Tools/Tool Palette/PXToolSwitcher.m
Expand Up @@ -212,7 +212,7 @@ - (void)activateColorWell
[colorWell activate:YES];
}

- (void)clearBeziers;
- (void)clearBeziers
{
[tools makeObjectsPerformSelector:@selector(clearBeziers)];
}
Expand Down
2 changes: 1 addition & 1 deletion Pixen Application/Tools/Tools/PXLinearTool.m
Expand Up @@ -55,7 +55,7 @@ - (NSPoint)transformOrigin:(NSPoint)origin withDrawingPoint:(NSPoint)aPoint
return _origin;
}

- (void)fakeMouseDraggedIfNecessary;
- (void)fakeMouseDraggedIfNecessary
{
// kind of a HACK
if (isClicking)
Expand Down

0 comments on commit f854f68

Please sign in to comment.