Revision: 12358 http://sourceforge.net/p/skim-app/code/12358 Author: hofman Date: 2021-06-22 16:21:49 +0000 (Tue, 22 Jun 2021) Log Message: ----------- Remove unused function to draw an add badge
Modified Paths: -------------- trunk/NSImage_SKExtensions.m Modified: trunk/NSImage_SKExtensions.m =================================================================== --- trunk/NSImage_SKExtensions.m 2021-06-22 15:52:58 UTC (rev 12357) +++ trunk/NSImage_SKExtensions.m 2021-06-22 16:21:49 UTC (rev 12358) @@ -214,8 +214,6 @@ static inline void drawArrowCursor(); -static void drawAddBadgeAtPoint(NSPoint point); - static void evaluateLaserPointer(void *info, const CGFloat *in, CGFloat *out); #define MAKE_IMAGE(name, isTemplate, width, height, instructions) \ @@ -2108,31 +2106,6 @@ [arrowCursor drawAtPoint:NSMakePoint(0.0, 42.0 - [arrowCursor size].height) fromRect:NSZeroRect operation:NSCompositeSourceOver fraction:1.0]; } -static void drawAddBadgeAtPoint(NSPoint point) { - NSBezierPath *path = [NSBezierPath bezierPath]; - [path moveToPoint:NSMakePoint(point.x + 2.5, point.y + 6.5)]; - [path relativeLineToPoint:NSMakePoint(4.0, 0.0)]; - [path relativeLineToPoint:NSMakePoint(0.0, -4.0)]; - [path relativeLineToPoint:NSMakePoint(3.0, 0.0)]; - [path relativeLineToPoint:NSMakePoint(0.0, 4.0)]; - [path relativeLineToPoint:NSMakePoint(4.0, 0.0)]; - [path relativeLineToPoint:NSMakePoint(0.0, 3.0)]; - [path relativeLineToPoint:NSMakePoint(-4.0, 0.0)]; - [path relativeLineToPoint:NSMakePoint(0.0, 4.0)]; - [path relativeLineToPoint:NSMakePoint(-3.0, 0.0)]; - [path relativeLineToPoint:NSMakePoint(0.0, -4.0)]; - [path relativeLineToPoint:NSMakePoint(-4.0, 0.0)]; - [path closePath]; - - [NSGraphicsContext saveGraphicsState]; - [[NSColor colorWithGenericGamma22White:1.0 alpha:1.0] setFill]; - [path fill]; - [NSShadow setShadowWithWhite:0.0 alpha:0.5 blurRadius:1.0 yOffset:0.0]; - [[NSColor colorWithSRGBRed:0.323 green:0.433 blue:0.433 alpha:1.0] setStroke]; - [path stroke]; - [NSGraphicsContext restoreGraphicsState]; -} - static void evaluateLaserPointer(void *info, const CGFloat *in, CGFloat *out) { static const CGFloat laserPointerRGB[21] = {1.0, 0.0, 0.0, 1.0, 0.624406, 0.0, This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. _______________________________________________ Skim-app-commit mailing list Skim-app-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/skim-app-commit