Skip to content

Commit

Permalink
Fixed warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Mitchell committed Apr 16, 2013
1 parent 26b489c commit db1d7bd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
2 changes: 0 additions & 2 deletions SMLLayoutManager.m
Expand Up @@ -113,8 +113,6 @@ - (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(N
#pragma mark -
#pragma mark Drawing

#warning Drawing at specific points (howto)

/*
- drawGlyphsForGlyphRange:atPoint:
Expand Down
8 changes: 4 additions & 4 deletions SMLLineNumbers.m
Expand Up @@ -236,13 +236,13 @@ - (void)updateLineNumbersForClipView:(NSClipView *)clipView checkWidth:(BOOL)che
}

// Fix flickering while rubber banding: Only change the text, if NOT rubber banding.
if (visibleRect.origin.y >= 0.0f && visibleRect.origin.y <= textView.frame.size.height - visibleRect.size.height)
if (visibleRect.origin.y >= 0.0f && visibleRect.origin.y <= textView.frame.size.height - visibleRect.size.height) {
[[gutterScrollView documentView] setString:lineNumbersString];
}

// set breakpoint lines
[[gutterScrollView documentView] setBreakpointLines:textLineBreakpoints];

#warning Draw on top of string here


[[gutterScrollView contentView] setBoundsOrigin:zeroPoint]; // To avert an occasional bug which makes the line numbers disappear
currentLineHeight = (NSInteger)[textView lineHeight];
if ((NSInteger)visibleRect.origin.y != 0 && currentLineHeight != 0) {
Expand Down
3 changes: 0 additions & 3 deletions SMLSyntaxColouring.m
Expand Up @@ -338,7 +338,6 @@ - (NSString *)assignSyntaxDefinition
NSString *definitionName = [document valueForKey:MGSFOSyntaxDefinitionName];
if (definitionName) return definitionName;

NSString *defaultDefinitionName = [SMLDefaults valueForKey:MGSFragariaPrefsSyntaxColouringPopUpString];
NSString *documentExtension = [[document valueForKey:MGSFODocumentName] pathExtension];

NSString *lowercaseExtension = nil;
Expand Down Expand Up @@ -833,8 +832,6 @@ - (void)recolourRange:(NSRange)rangeToRecolour
}
}

NSLog(@"rangeToRecolor location %i length %i", effectiveRange.location, effectiveRange.length);

// setup working locations based on teh effective range
NSUInteger rangeLocation = effectiveRange.location;
NSUInteger maxRangeLocation = NSMaxRange(effectiveRange);
Expand Down

0 comments on commit db1d7bd

Please sign in to comment.