Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
uranusjr committed Aug 5, 2014
1 parent d97a680 commit b06740c
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions MacDown/Code/Extension/NSString+Lookup.m
Original file line number Diff line number Diff line change
Expand Up @@ -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.*)$";
Expand Down

0 comments on commit b06740c

Please sign in to comment.