Skip to content

Commit

Permalink
removed commented duplicate code
Browse files Browse the repository at this point in the history
  • Loading branch information
odrobnik committed Oct 30, 2013
1 parent d75e2e3 commit 36c34b5
Showing 1 changed file with 0 additions and 58 deletions.
58 changes: 0 additions & 58 deletions Core/Source/DTMarkdownParser.m
Expand Up @@ -685,64 +685,6 @@ - (NSUInteger)_listLevelForLineAtIndex:(NSUInteger)lineIndex

#pragma mark - Parsing

// process a string that has a formatting marker at the begin and end
//- (void)_processMarkedString2:(NSString *)markedString insideMarker:(NSString *)marker inRange:(NSRange)range
//{
// NSAssert([markedString hasPrefix:marker] && [markedString hasSuffix:marker], @"Processed string has to have the marker at beginning and end");
//
// NSUInteger markerLength = [marker length];
// NSRange insideMarkedRange = NSMakeRange(markerLength, markedString.length - 2*markerLength);
//
// // trim off prefix and suffix marker
// markedString = [markedString substringWithRange:insideMarkedRange];
//
// BOOL processFurtherMarkers = YES;
//
// // open the tag for this marker
// if ([marker isEqualToString:@"*"] || [marker isEqualToString:@"_"])
// {
// [self _pushTag:@"em" attributes:nil];
// }
// else if ([marker isEqualToString:@"**"] || [marker isEqualToString:@"__"])
// {
// [self _pushTag:@"strong" attributes:nil];
// }
// else if ([marker isEqualToString:@"~~"])
// {
// [self _pushTag:@"del" attributes:nil];
// }
// else if ([marker isEqualToString:@"`"])
// {
// [self _pushTag:@"code" attributes:nil];
// processFurtherMarkers = NO;
// }
//
// if (processFurtherMarkers)
// {
// NSScanner *scanner = [NSScanner scannerWithString:markedString];
// scanner.charactersToBeSkipped = nil;
//
// NSString *furtherMarker;
//
// if ([scanner scanMarkdownBeginMarker:&furtherMarker] && [markedString hasSuffix:furtherMarker])
// {
// NSUInteger markerLength = [marker length];
// [self _processMarkedString:markedString insideMarker:furtherMarker inRange:NSMakeRange(range.location + markerLength, range.length - 2*markerLength)];
// }
// else
// {
// [self _reportCharacters:markedString];
// }
// }
// else
// {
// [self _reportCharacters:markedString];
// }
//
// // close the tag for this marker
// [self _popTag];
//}

// process the text between the [] of a hyperlink, this is similar to the parse loop, but with several key differences
- (void)_processHyperlinkEnclosedText:(NSString *)text withIndex:(NSUInteger)lineIndex allowAutoDetection:(BOOL)allowAutoDetection
{
Expand Down

0 comments on commit 36c34b5

Please sign in to comment.