Revision: 14305
http://sourceforge.net/p/skim-app/code/14305
Author: hofman
Date: 2024-06-05 22:41:03 +0000 (Wed, 05 Jun 2024)
Log Message:
-----------
remove currently unused ivar for thumbnail
Modified Paths:
--------------
trunk/SKThumbnail.h
trunk/SKThumbnail.m
Modified: trunk/SKThumbnail.h
===================================================================
--- trunk/SKThumbnail.h 2024-06-05 22:26:46 UTC (rev 14304)
+++ trunk/SKThumbnail.h 2024-06-05 22:41:03 UTC (rev 14305)
@@ -49,7 +49,6 @@
NSString *label;
NSUInteger pageIndex;
BOOL dirty;
- BOOL notedDirty;
__weak id <SKThumbnailDelegate> delegate;
}
@@ -63,8 +62,6 @@
- (instancetype)initWithImage:(NSImage *)anImage label:(NSString *)aLabel
pageIndex:(NSUInteger)anIndex;
-- (void)dirtyIfNeeded;
-
@end
Modified: trunk/SKThumbnail.m
===================================================================
--- trunk/SKThumbnail.m 2024-06-05 22:26:46 UTC (rev 14304)
+++ trunk/SKThumbnail.m 2024-06-05 22:41:03 UTC (rev 14305)
@@ -51,17 +51,13 @@
label = aLabel;
pageIndex = anIndex;
dirty = NO;
- notedDirty = NO;
}
return self;
}
- (NSImage *)image {
- if (dirty) {
- if ([delegate generateImageForThumbnail:self])
- dirty = NO;
- notedDirty = NO;
- }
+ if (dirty && [delegate generateImageForThumbnail:self])
+ dirty = NO;
return image;
}
@@ -76,13 +72,7 @@
- (void)setDirty:(BOOL)newDirty {
[self willChangeValueForKey:@"image"];
dirty = newDirty;
- notedDirty = newDirty;
[self didChangeValueForKey:@"image"];
}
-- (void)dirtyIfNeeded {
- if (dirty && notedDirty == NO)
- [self setDirty:YES];
-}
-
@end
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