From b06740c09c1a86ecb5894576159769d5ab04f961 Mon Sep 17 00:00:00 2001 From: Tzu-ping Chung Date: Tue, 5 Aug 2014 15:09:39 +0800 Subject: [PATCH] Remove dead code --- MacDown/Code/Extension/NSString+Lookup.m | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/MacDown/Code/Extension/NSString+Lookup.m b/MacDown/Code/Extension/NSString+Lookup.m index d4af6581..160a03ea 100644 --- a/MacDown/Code/Extension/NSString+Lookup.m +++ b/MacDown/Code/Extension/NSString+Lookup.m @@ -45,26 +45,6 @@ - (NSUInteger)locationOfFirstNonWhitespaceCharacterInLineBefore:(NSUInteger)loc return p; } -- (NSRange)rangeOfLinesInRange:(NSRange)range -{ - if (self.length == 0) - return NSMakeRange(0, 0); - - NSUInteger location = range.location; - NSUInteger length = range.length; - NSUInteger start = [self locationOfFirstNewlineBefore:location] + 1; - NSUInteger end = location + length - 1; - if (end >= self.length - 1) - end = self.length - 2; - if (!MPCharacterIsNewline([self characterAtIndex:end])) - end = [self locationOfFirstNewlineAfter:end]; - if (end < start) - end = start; - if (end < self.length) - end++; - return NSMakeRange(start, end - start); -} - - (NSString *)titleString { NSString *pattern = @"\\s+(\\S.*)$";