From 7e64e50cdabd6f80cbd78f3a808dfa104fafdc8e Mon Sep 17 00:00:00 2001 From: Riccardo Mottola Date: Mon, 13 Dec 2021 23:49:56 +0100 Subject: [PATCH] remove some debug logs --- Modules/Editors/ProjectCenter/PCEditor.m | 5 +---- Modules/Editors/ProjectCenter/PCEditorView.m | 6 ------ 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/Modules/Editors/ProjectCenter/PCEditor.m b/Modules/Editors/ProjectCenter/PCEditor.m index 9a4a201..2f49195 100644 --- a/Modules/Editors/ProjectCenter/PCEditor.m +++ b/Modules/Editors/ProjectCenter/PCEditor.m @@ -141,8 +141,6 @@ RELEASE(_intStatusField); RELEASE(_intScrollView); - NSLog(@"%@", _intStatusField); - NSLog(@"%@", [_intStatusField superview]); /* * Setting up ext view / scroll view / window */ @@ -722,7 +720,6 @@ } else if (choice == NSAlertAlternateReturn) { - NSLog(@"Self"); if ([self revertFileToSaved] == YES) return NO; NSLog(@"reload failed"); @@ -1195,7 +1192,7 @@ willChangeSelectionFromCharacterRange:(NSRange)oldSelectedCharRange selLine = nlCount + 1; } - NSLog(@"%u corresponds to %u", (unsigned int)selection.location, (unsigned int)selLine); + if (selLine != NSNotFound) { [_intStatusField setStringValue: [NSString stringWithFormat:@"%u", (unsigned)selLine]]; diff --git a/Modules/Editors/ProjectCenter/PCEditorView.m b/Modules/Editors/ProjectCenter/PCEditorView.m index 65caa73..0a071e4 100644 --- a/Modules/Editors/ProjectCenter/PCEditorView.m +++ b/Modules/Editors/ProjectCenter/PCEditorView.m @@ -185,8 +185,6 @@ static int ComputeIndentingOffset(NSString * string, NSUInteger start) } } - NSLog(@"index: %li start: %li", index, line_start); - return line_start > index ? index : line_start; } @@ -204,8 +202,6 @@ static int ComputeIndentingOffset(NSString * string, NSUInteger start) } } - NSLog(@"index: %li end: %li", (long)index, (long)line_end); - return line_end < string_length ? line_end : string_length; } @@ -218,8 +214,6 @@ static int ComputeIndentingOffset(NSString * string, NSUInteger start) prev_line_start = [self lineStartIndexForIndex:cur_line_start-1 forString:string]; - NSLog(@"index: %li prev_start: %li", (long)index, (long)prev_line_start); - return prev_line_start; }