Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Changed license, shut up a warning about an unused variable.

  • Loading branch information...
commit 4c42a596878d484f427f12cbe4ab355f8f0a2011 1 parent ff40e74
@uliwitness authored
Showing with 26 additions and 11 deletions.
  1. +26 −11 UKSyntaxColoredTextDocument.m
View
37 UKSyntaxColoredTextDocument.m
@@ -1,13 +1,29 @@
-/* =============================================================================
- FILE: UKSyntaxColoredTextDocument.m
- PROJECT: CocoaTads
-
- AUTHORS: M. Uli Kusterer <witness@zathras.de>, (c) 2003, all rights
- reserved.
-
- REVISIONS:
- 2003-05-31 UK Created.
- ========================================================================== */
+//
+// UKSyntaxColoredTextDocument.m
+// CocoaTads
+//
+// Created by Uli Kusterer on 31.05.2003.
+// Copyright 2003 Uli Kusterer.
+//
+// This software is provided 'as-is', without any express or implied
+// warranty. In no event will the authors be held liable for any damages
+// arising from the use of this software.
+//
+// Permission is granted to anyone to use this software for any purpose,
+// including commercial applications, and to alter it and redistribute it
+// freely, subject to the following restrictions:
+//
+// 1. The origin of this software must not be misrepresented; you must not
+// claim that you wrote the original software. If you use this software
+// in a product, an acknowledgment in the product documentation would be
+// appreciated but is not required.
+//
+// 2. Altered source versions must be plainly marked as such, and must not be
+// misrepresented as being the original software.
+//
+// 3. This notice may not be removed or altered from any source
+// distribution.
+//
#import "UKSyntaxColoredTextDocument.h"
#import "NSArray+Color.h"
@@ -825,7 +841,6 @@ -(void) recolorRange: (NSRange)range
[status setStringValue: [NSString stringWithFormat: @"Recoloring syntax in %@", NSStringFromRange(range)]];
// Get the text we'll be working with:
- NSRange vOldSelection = [textView selectedRange];
NSMutableAttributedString* vString = [[NSMutableAttributedString alloc] initWithString: [[[textView textStorage] string] substringWithRange: range]];
[vString autorelease];
Please sign in to comment.
Something went wrong with that request. Please try again.