Permalink
Browse files

Removed unused recolorTimer ivar & code referencing it

Keeping it as a reserved "id" in case someone is exporting this from a 32-bit framework.
  • Loading branch information...
1 parent 256fabc commit 2f1aa2ea5a69e6f8783ecdac5369a5ebd1bb9be2 @uliwitness committed Feb 5, 2012
Showing with 2 additions and 7 deletions.
  1. +1 −1 UKSyntaxColoredTextViewController.h
  2. +1 −6 UKSyntaxColoredTextViewController.m
@@ -71,7 +71,7 @@
{
BOOL autoSyntaxColoring; // Automatically refresh syntax coloring when text is changed?
BOOL maintainIndentation; // Keep new lines indented at same depth as their predecessor?
- NSTimer* recolorTimer; // Timer used to do the actual recoloring a little while after the last keypress.
+ id reserved;
BOOL syntaxColoringBusy; // Set while recolorRange is busy, so we don't recursively call recolorRange.
NSRange affectedCharRange;
NSString* replacementString;
@@ -82,7 +82,6 @@ -(id) initWithNibName: (NSString*)inNibName bundle: (NSBundle*)inBundle
{
autoSyntaxColoring = YES;
maintainIndentation = YES;
- recolorTimer = nil;
syntaxColoringBusy = NO;
}
return self;
@@ -93,9 +92,6 @@ -(void) dealloc
{
[[NSNotificationCenter defaultCenter] removeObserver: self];
- [recolorTimer invalidate]; // It retains us, so we should already be invalidated when we get here, but just for symmetry's sake.
- DESTROY_DEALLOC(recolorTimer);
-
DESTROY_DEALLOC(replacementString);
[super dealloc];
@@ -809,8 +805,7 @@ -(void) recolorRange: (NSRange)range
if( syntaxColoringBusy ) // Prevent endless loop when recoloring's replacement of text causes processEditing to fire again.
return;
- if( TEXTVIEW == nil || range.length == 0 // Don't like doing useless stuff.
- || recolorTimer ) // And don't like recoloring partially if a full recolorization is pending.
+ if( TEXTVIEW == nil || range.length == 0 ) // Don't like doing useless stuff.
return;
@try

0 comments on commit 2f1aa2e

Please sign in to comment.