Skip to content

Commit

Permalink
Delete the unused method.
Browse files Browse the repository at this point in the history
  • Loading branch information
tyeen committed Mar 25, 2015
1 parent 524f587 commit fdf3963
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions Backlight/AAABacklight.m
Original file line number Diff line number Diff line change
Expand Up @@ -289,24 +289,6 @@ - (void)backlightNotification:(NSNotification *)notification
[self updateBacklightViewWithTextView:firstResponder];
}

/**
* Respond to NSTextDidEndEditingNotification to remove the highlighted background color.
*/
- (void)endBacklightNotification:(NSNotification *)notification {
id firstResponder = [[NSApp keyWindow] firstResponder];
if (![firstResponder isKindOfClass:NSClassFromString(@"DVTSourceTextView")]) return;

if (self.textView != nil &&
self.textView == firstResponder &&
self.currentMode == AAABacklightModeUnderneath &&
[self.textView.layoutManager temporaryAttribute:NSBackgroundColorAttributeName
atCharacterIndex:self.currentLineRange.location
effectiveRange:NULL]) {
[self.textView.layoutManager removeTemporaryAttribute:NSBackgroundColorAttributeName
forCharacterRange:self.currentLineRange];
}
}

- (void)colorPanelWillClose:(NSNotification *)notification
{
NSColorPanel *panel = [NSColorPanel sharedColorPanel];
Expand Down

0 comments on commit fdf3963

Please sign in to comment.