summaryrefslogtreecommitdiff
path: root/platform/ios/Classes/MuAnnotSelectView.m
diff options
context:
space:
mode:
Diffstat (limited to 'platform/ios/Classes/MuAnnotSelectView.m')
-rw-r--r--platform/ios/Classes/MuAnnotSelectView.m39
1 files changed, 0 insertions, 39 deletions
diff --git a/platform/ios/Classes/MuAnnotSelectView.m b/platform/ios/Classes/MuAnnotSelectView.m
deleted file mode 100644
index a02adbf7..00000000
--- a/platform/ios/Classes/MuAnnotSelectView.m
+++ /dev/null
@@ -1,39 +0,0 @@
-#import "MuAnnotSelectView.h"
-
-@implementation MuAnnotSelectView
-{
- MuAnnotation *annot;
- CGSize pageSize;
- UIColor *color;
-}
-
-- (instancetype)initWithAnnot:(MuAnnotation *)_annot pageSize:(CGSize)_pageSize
-{
- self = [super initWithFrame:CGRectMake(0.0, 0.0, 100.0, 100.0)];
- if (self)
- {
- [self setOpaque:NO];
- annot = [_annot retain];
- pageSize = _pageSize;
- color = [[UIColor colorWithRed:0x44/255.0 green:0x44/255.0 blue:1.0 alpha:1.0] retain];
- }
- return self;
-}
-
--(void) dealloc
-{
- [annot release];
- [color release];
- [super dealloc];
-}
-
-- (void)drawRect:(CGRect)rect
-{
- CGSize scale = fitPageToScreen(pageSize, self.bounds.size);
- CGContextRef cref = UIGraphicsGetCurrentContext();
- CGContextScaleCTM(cref, scale.width, scale.height);
- [color set];
- CGContextStrokeRect(cref, annot.rect);
-}
-
-@end