Revision: 5035
http://skim-app.svn.sourceforge.net/skim-app/?rev=5035&view=rev
Author: hofman
Date: 2008-12-09 17:21:48 +0000 (Tue, 09 Dec 2008)
Log Message:
-----------
remove unused methods
Modified Paths:
--------------
trunk/SKTemplateParser.h
trunk/SKTemplateParser.m
Modified: trunk/SKTemplateParser.h
===================================================================
--- trunk/SKTemplateParser.h 2008-12-09 16:13:53 UTC (rev 5034)
+++ trunk/SKTemplateParser.h 2008-12-09 17:21:48 UTC (rev 5035)
@@ -70,12 +70,3 @@
- (NSAttributedString
*)templateAttributedStringValueWithAttributes:(NSDictionary *)attributes;
@end
-
-#pragma mark -
-
[EMAIL PROTECTED] NSScanner (SKTemplateParser)
-
-- (BOOL)scanEmptyLine;
-- (BOOL)scanEmptyLineRequiringNewline:(BOOL)requireNL;
-
[EMAIL PROTECTED]
Modified: trunk/SKTemplateParser.m
===================================================================
--- trunk/SKTemplateParser.m 2008-12-09 16:13:53 UTC (rev 5034)
+++ trunk/SKTemplateParser.m 2008-12-09 17:21:48 UTC (rev 5035)
@@ -877,39 +877,6 @@
#pragma mark -
[EMAIL PROTECTED] NSScanner (SKTemplateParser)
-
-- (BOOL)scanEmptyLine {
- return [self scanEmptyLineRequiringNewline:NO];
-}
-
-- (BOOL)scanEmptyLineRequiringNewline:(BOOL)requireNL {
- BOOL foundEndOfLine = NO;
- BOOL foundWhitespace = NO;
- int startLoc = [self scanLocation];
-
- // [self scanCharactersFromSet:[NSCharacterSet whitespaceCharacterSet]
intoString:nil] is much more sensible, but NSScanner creates an autoreleased
inverted character set every time you use it, so it's pretty inefficient
- foundWhitespace = [self scanUpToCharactersFromSet:[NSCharacterSet
nonWhitespaceCharacterSet] intoString:nil];
-
- if ([self isAtEnd]) {
- foundEndOfLine = foundWhitespace;
- } else {
- foundEndOfLine = [self scanString:@"\r\n" intoString:nil];
- if (foundEndOfLine == NO) {
- unichar nextChar = [[self string] characterAtIndex:[self
scanLocation]];
- if (foundEndOfLine = [[NSCharacterSet newlineCharacterSet]
characterIsMember:nextChar])
- [self setScanLocation:[self scanLocation] + 1];
- }
- }
- if (foundEndOfLine == NO && (requireNL == YES || foundWhitespace == YES))
- [self setScanLocation:startLoc];
- return foundEndOfLine;
-}
-
[EMAIL PROTECTED]
-
-#pragma mark -
-
@implementation NSAttributedString (SKTemplateParser)
- (NSAttributedString
*)templateAttributedStringValueWithAttributes:(NSDictionary *)attributes {
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit