Revision: 13730
http://sourceforge.net/p/skim-app/code/13730
Author: hofman
Date: 2023-11-06 15:03:20 +0000 (Mon, 06 Nov 2023)
Log Message:
-----------
remove unused function
Modified Paths:
--------------
trunk/PDFAnnotationLine_SKExtensions.m
Modified: trunk/PDFAnnotationLine_SKExtensions.m
===================================================================
--- trunk/PDFAnnotationLine_SKExtensions.m 2023-11-06 10:21:39 UTC (rev
13729)
+++ trunk/PDFAnnotationLine_SKExtensions.m 2023-11-06 15:03:20 UTC (rev
13730)
@@ -64,38 +64,6 @@
static void (*original_setBounds)(id, SEL, NSRect) = NULL;
-static inline void addLineTipToPath(CGMutablePathRef path, NSPoint point,
CGFloat angle, PDFLineStyle lineStyle, CGFloat lineWidth) {
- CGAffineTransform transform =
CGAffineTransformRotate(CGAffineTransformMakeTranslation(point.x, point.y),
angle);
- switch (lineStyle) {
- case kPDFLineStyleNone:
- return;
- case kPDFLineStyleSquare:
- CGPathAddRect(path, &transform, CGRectMake(-1.5 * lineWidth, -1.5
* lineWidth, 3.0 * lineWidth, 3.0 * lineWidth));
- break;
- case kPDFLineStyleCircle:
- CGPathAddEllipseInRect(path, &transform, CGRectMake(-1.5 *
lineWidth, -1.5 * lineWidth, 3.0 * lineWidth, 3.0 * lineWidth));
- break;
- case kPDFLineStyleDiamond:
- CGPathMoveToPoint(path, &transform, 1.5 * lineWidth, 0.0);
- CGPathAddLineToPoint(path, &transform, 0.0, 1.5 * lineWidth);
- CGPathAddLineToPoint(path, &transform, -1.5 * lineWidth, 0.0);
- CGPathAddLineToPoint(path, &transform, 0.0, -1.5 * lineWidth);
- CGPathCloseSubpath(path);
- break;
- case kPDFLineStyleOpenArrow:
- CGPathMoveToPoint(path, &transform, -3.0 * lineWidth, 1.5 *
lineWidth);
- CGPathAddLineToPoint(path, &transform, 0.0, 0.0);
- CGPathAddLineToPoint(path, &transform, -3.0 * lineWidth, -1.5 *
lineWidth);
- break;
- case kPDFLineStyleClosedArrow:
- CGPathMoveToPoint(path, &transform, -3.0 * lineWidth, 1.5 *
lineWidth);
- CGPathAddLineToPoint(path, &transform, 0.0, 0.0);
- CGPathAddLineToPoint(path, &transform, -3.0 * lineWidth, -1.5 *
lineWidth);
- CGPathCloseSubpath(path);
- break;
- }
-}
-
- (void)replacement_setBounds:(NSRect)newBounds {
NSPoint startPoint = [self startPoint];
NSPoint endPoint = [self endPoint];
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit