Revision: 4865
http://skim-app.svn.sourceforge.net/skim-app/?rev=4865&view=rev
Author: hofman
Date: 2008-10-25 11:32:19 +0000 (Sat, 25 Oct 2008)
Log Message:
-----------
remove unused function
Modified Paths:
--------------
trunk/PDFSelection_SKExtensions.m
Modified: trunk/PDFSelection_SKExtensions.m
===================================================================
--- trunk/PDFSelection_SKExtensions.m 2008-10-24 21:00:06 UTC (rev 4864)
+++ trunk/PDFSelection_SKExtensions.m 2008-10-25 11:32:19 UTC (rev 4865)
@@ -330,44 +330,6 @@
return rangeDicts;
}
-static PDFSelection *selectionForCharacterRangesInDocument(NSArray *ranges,
PDFDocument *document) {
- int i, count = [document pageCount];
- NSRange *pageRanges = NSZoneMalloc(NSDefaultMallocZone(), count *
sizeof(NSRange));
- unsigned int start = 0;
-
- for (i = 0; i < count; i++) {
- pageRanges[i] = NSMakeRange(start, [[[document pageAtIndex:i] string]
length]);
- start += pageRanges[i].length;
- }
-
- PDFSelection *selection = nil;
-
- NSEnumerator *rangeEnum = [ranges objectEnumerator];
- NSValue *value;
-
- while (value = [rangeEnum nextObject]) {
- NSRange range = [value rangeValue];
- for (i = 0; i < count && NSMaxRange(range) > pageRanges[i].location;
i++) {
- PDFSelection *sel;
- NSRange r = NSIntersectionRange(pageRanges[i], range);
- if (range.length == 0)
- continue;
- r.location -= pageRanges[i].location;
- if (sel = [[document pageAtIndex:i] selectionForRange:r]) {
- if (selection == nil)
- selection = sel;
- else
- [selection addSelection:sel];
- }
- }
- }
-
-
- NSZoneFree(NSDefaultMallocZone(), pageRanges);
-
- return selection;
-}
-
+ (id)selectionWithSpecifier:(id)specifier {
return [self selectionWithSpecifier:specifier onPage:nil];
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit