From 9822411a0fcbd5f507e017bc638a54054b503ff4 Mon Sep 17 00:00:00 2001 From: Sergio Campama Date: Wed, 29 Mar 2017 17:35:51 -0400 Subject: Remove trailing whitespaces --- AppKit/GTMFadeTruncatingTextFieldCell.h | 4 ++-- AppKit/GTMFadeTruncatingTextFieldCell.m | 2 +- AppKit/GTMLoginItems.h | 8 ++++---- AppKit/GTMNSBezierPath+CGPath.h | 10 +++++----- AppKit/GTMNSBezierPath+CGPath.m | 18 +++++++++--------- AppKit/GTMNSBezierPath+RoundRect.h | 6 +++--- AppKit/GTMNSBezierPath+RoundRect.m | 10 +++++----- AppKit/GTMNSColor+Luminance.h | 4 ++-- AppKit/GTMNSColor+Luminance.m | 10 +++++----- 9 files changed, 36 insertions(+), 36 deletions(-) (limited to 'AppKit') diff --git a/AppKit/GTMFadeTruncatingTextFieldCell.h b/AppKit/GTMFadeTruncatingTextFieldCell.h index 267d4b8..f2feb0a 100644 --- a/AppKit/GTMFadeTruncatingTextFieldCell.h +++ b/AppKit/GTMFadeTruncatingTextFieldCell.h @@ -6,9 +6,9 @@ // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy // of the License at -// +// // http://www.apache.org/licenses/LICENSE-2.0 -// +// // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the diff --git a/AppKit/GTMFadeTruncatingTextFieldCell.m b/AppKit/GTMFadeTruncatingTextFieldCell.m index ebe4dd0..ff178bb 100644 --- a/AppKit/GTMFadeTruncatingTextFieldCell.m +++ b/AppKit/GTMFadeTruncatingTextFieldCell.m @@ -169,7 +169,7 @@ width, NSMaxXEdge); } - // Draw non-gradient part without transparency layer, as light text on a dark + // Draw non-gradient part without transparency layer, as light text on a dark // background looks bad with a gradient layer. [NSGraphicsContext saveGraphicsState]; if ([self drawsBackground]) { diff --git a/AppKit/GTMLoginItems.h b/AppKit/GTMLoginItems.h index b4375b4..1e2015f 100644 --- a/AppKit/GTMLoginItems.h +++ b/AppKit/GTMLoginItems.h @@ -6,9 +6,9 @@ // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy // of the License at -// +// // http://www.apache.org/licenses/LICENSE-2.0 -// +// // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the @@ -47,7 +47,7 @@ GTM_EXTERN NSString * const kGTMLoginItemsHiddenKey; // // Returns: // YES if the path is in the Login Items -// +// + (BOOL)pathInLoginItems:(NSString *)path; /// Check if the given name is in the current user's Login Items @@ -57,7 +57,7 @@ GTM_EXTERN NSString * const kGTMLoginItemsHiddenKey; // // Returns: // YES if the name is in the Login Items -// +// + (BOOL)itemWithNameInLoginItems:(NSString *)name; /// Add the given path to the current user's Login Items. Does nothing if the diff --git a/AppKit/GTMNSBezierPath+CGPath.h b/AppKit/GTMNSBezierPath+CGPath.h index a1b022e..81c3ef5 100644 --- a/AppKit/GTMNSBezierPath+CGPath.h +++ b/AppKit/GTMNSBezierPath+CGPath.h @@ -6,9 +6,9 @@ // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy // of the License at -// +// // http://www.apache.org/licenses/LICENSE-2.0 -// +// // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the @@ -19,14 +19,14 @@ #import /// Category for extracting a CGPathRef from a NSBezierPath -@interface NSBezierPath (GTMBezierPathCGPathAdditions) +@interface NSBezierPath (GTMBezierPathCGPathAdditions) /// Extract a CGPathRef from a NSBezierPath. // -// Args: +// Args: // // Returns: -// Converted autoreleased CGPathRef. +// Converted autoreleased CGPathRef. // nil if failure. - (CGPathRef)gtm_CGPath; diff --git a/AppKit/GTMNSBezierPath+CGPath.m b/AppKit/GTMNSBezierPath+CGPath.m index dd5c5f2..6b24a17 100644 --- a/AppKit/GTMNSBezierPath+CGPath.m +++ b/AppKit/GTMNSBezierPath+CGPath.m @@ -8,9 +8,9 @@ // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy // of the License at -// +// // http://www.apache.org/licenses/LICENSE-2.0 -// +// // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the @@ -24,7 +24,7 @@ // Extract a CGPathRef from a NSBezierPath. // -// Args: +// Args: // // Returns: // Converted CGPathRef. @@ -32,25 +32,25 @@ - (CGPathRef)gtm_CGPath { CGMutablePathRef thePath = CGPathCreateMutable(); if (!thePath) return nil; - + NSInteger elementCount = [self elementCount]; - + // The maximum number of points is 3 for a NSCurveToBezierPathElement. // (controlPoint1, controlPoint2, and endPoint) NSPoint controlPoints[3]; - + for (NSInteger i = 0; i < elementCount; i++) { switch ([self elementAtIndex:i associatedPoints:controlPoints]) { case NSMoveToBezierPathElement: - CGPathMoveToPoint(thePath, &CGAffineTransformIdentity, + CGPathMoveToPoint(thePath, &CGAffineTransformIdentity, controlPoints[0].x, controlPoints[0].y); break; case NSLineToBezierPathElement: - CGPathAddLineToPoint(thePath, &CGAffineTransformIdentity, + CGPathAddLineToPoint(thePath, &CGAffineTransformIdentity, controlPoints[0].x, controlPoints[0].y); break; case NSCurveToBezierPathElement: - CGPathAddCurveToPoint(thePath, &CGAffineTransformIdentity, + CGPathAddCurveToPoint(thePath, &CGAffineTransformIdentity, controlPoints[0].x, controlPoints[0].y, controlPoints[1].x, controlPoints[1].y, controlPoints[2].x, controlPoints[2].y); diff --git a/AppKit/GTMNSBezierPath+RoundRect.h b/AppKit/GTMNSBezierPath+RoundRect.h index 25f4605..56e322b 100644 --- a/AppKit/GTMNSBezierPath+RoundRect.h +++ b/AppKit/GTMNSBezierPath+RoundRect.h @@ -9,9 +9,9 @@ // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy // of the License at -// +// // http://www.apache.org/licenses/LICENSE-2.0 -// +// // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the @@ -23,7 +23,7 @@ #import "GTMDefines.h" /// Category for adding utility functions for creating round rectangles. -@interface NSBezierPath (GMBezierPathRoundRectAdditions) +@interface NSBezierPath (GMBezierPathRoundRectAdditions) /// Inscribe a round rectangle inside of rectangle |rect| with a corner radius of |radius| // diff --git a/AppKit/GTMNSBezierPath+RoundRect.m b/AppKit/GTMNSBezierPath+RoundRect.m index 806bd94..8bac799 100644 --- a/AppKit/GTMNSBezierPath+RoundRect.m +++ b/AppKit/GTMNSBezierPath+RoundRect.m @@ -9,9 +9,9 @@ // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy // of the License at -// +// // http://www.apache.org/licenses/LICENSE-2.0 -// +// // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the @@ -50,7 +50,7 @@ if (radius > 0.0) { // Clamp radius to be no larger than half the rect's width or height. radius = MIN(radius, 0.5 * MIN(rect.size.width, rect.size.height)); - + [self gtm_appendBezierPathWithRoundRect:rect topLeftCornerRadius:radius topRightCornerRadius:radius @@ -74,12 +74,12 @@ radiusTR = MAX(0, radiusTR); radiusBL = MAX(0, radiusBL); radiusBR = MAX(0, radiusBR); - + if (!NSIsEmptyRect(rect)) { NSPoint topLeft = NSMakePoint(NSMinX(rect), NSMaxY(rect)); NSPoint topRight = NSMakePoint(NSMaxX(rect), NSMaxY(rect)); NSPoint bottomRight = NSMakePoint(NSMaxX(rect), NSMinY(rect)); - + [self moveToPoint:NSMakePoint(NSMidX(rect), NSMaxY(rect))]; [self appendBezierPathWithArcFromPoint:topLeft toPoint:rect.origin diff --git a/AppKit/GTMNSColor+Luminance.h b/AppKit/GTMNSColor+Luminance.h index c1501cd..93631e7 100644 --- a/AppKit/GTMNSColor+Luminance.h +++ b/AppKit/GTMNSColor+Luminance.h @@ -6,9 +6,9 @@ // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy // of the License at -// +// // http://www.apache.org/licenses/LICENSE-2.0 -// +// // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the diff --git a/AppKit/GTMNSColor+Luminance.m b/AppKit/GTMNSColor+Luminance.m index 36cfd51..54ef77b 100644 --- a/AppKit/GTMNSColor+Luminance.m +++ b/AppKit/GTMNSColor+Luminance.m @@ -6,9 +6,9 @@ // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy // of the License at -// +// // http://www.apache.org/licenses/LICENSE-2.0 -// +// // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the @@ -46,7 +46,7 @@ static const CGFloat kGTMLuminanceDarkCutoff = 0.6; @implementation NSColor (GTMLuminance) - (NSColor *)labColor { - return [self colorUsingColorSpace:[NSColorSpace gtm_labColorSpace]]; + return [self colorUsingColorSpace:[NSColorSpace gtm_labColorSpace]]; } - (CGFloat)gtm_luminance { @@ -67,7 +67,7 @@ static const CGFloat kGTMLuminanceDarkCutoff = 0.6; CGFloat clipping = lab[0] - 100; CGFloat desaturation = (50.0 - clipping) / 50.0; saturation = MIN(saturation, desaturation); - } + } lab[1] *= saturation; lab[2] *= saturation; return [NSColor colorWithColorSpace:[NSColorSpace gtm_labColorSpace] @@ -137,7 +137,7 @@ const CGFloat kDefaultFade = 0.3; if (fade) { CGFloat luminance = [color gtm_luminance]; color = [color gtm_colorByAdjustingLuminance: - kDefaultFade * (1.0 - luminance) + kDefaultFade * (1.0 - luminance) saturation:kDefaultFade]; } return color; -- cgit v1.2.3