mirror of
https://github.com/gnustep/apps-projectcenter.git
synced 2025-03-14 06:31:31 +00:00
Remove compiler warnings by removing unneeded code.
This commit is contained in:
parent
6c4099258c
commit
0cdbc996a9
12 changed files with 41 additions and 27 deletions
13
.gitignore
vendored
Normal file
13
.gitignore
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
*.app
|
||||
*.debug
|
||||
*.profile
|
||||
*.plugin
|
||||
*.framework
|
||||
*.debugger
|
||||
*.editor
|
||||
*.parser
|
||||
*.preferences
|
||||
*.project
|
||||
derived_src
|
||||
obj
|
||||
*~
|
15
ChangeLog
15
ChangeLog
|
@ -1,3 +1,18 @@
|
|||
2019-12-29 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Framework/PCButton.m
|
||||
* Framework/PCProjectBrowser.m
|
||||
* Framework/PCProjectLauncherPanel.m
|
||||
* Framework/PCProjectLoadedFilesPanel.m
|
||||
* Framework/PCProjectManager.m
|
||||
* Modules/Debuggers/ProjectCenter/PCDebugger.m
|
||||
* Modules/Debuggers/ProjectCenter/PipeDelegate.m
|
||||
* Modules/Editors/ProjectCenter/SyntaxHighlighter.m
|
||||
* Modules/Projects/Library/PCLibProject.h
|
||||
* Modules/Projects/Library/PCLibProject.m
|
||||
Remove compiler warnings.
|
||||
* .gitignore: Add file
|
||||
|
||||
2019-05-25 Riccardo Mottola <rm@gnu.org>
|
||||
|
||||
* Modules/Editors/ProjectCenter/SyntaxDefinition.h
|
||||
|
|
|
@ -26,8 +26,6 @@
|
|||
#import <ProjectCenter/PCButton.h>
|
||||
#import <ProjectCenter/PCDefines.h>
|
||||
|
||||
#import <AppKit/NSBezierPath.h>
|
||||
|
||||
@implementation PCButton
|
||||
|
||||
// ============================================================================
|
||||
|
@ -48,12 +46,5 @@
|
|||
return self;
|
||||
}
|
||||
|
||||
- (void)dealloc
|
||||
{
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
|
||||
|
||||
@end
|
||||
|
||||
|
|
|
@ -599,7 +599,6 @@ NSString *PCBrowserDidSetPathNotification = @"PCBrowserDidSetPathNotification";
|
|||
{
|
||||
NSString *categoryName = nil;
|
||||
NSString *fileName = nil;
|
||||
NSString *fileExtension = nil;
|
||||
NSString *iconName = nil;
|
||||
NSImage *icon = nil;
|
||||
PCProject *activeProject = [[project projectManager] activeProject];
|
||||
|
@ -611,7 +610,6 @@ NSString *PCBrowserDidSetPathNotification = @"PCBrowserDidSetPathNotification";
|
|||
{
|
||||
return icon;
|
||||
}
|
||||
fileExtension = [fileName pathExtension];
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -35,14 +35,10 @@
|
|||
|
||||
- (id)initWithProjectManager:(PCProjectManager *)aManager
|
||||
{
|
||||
PCProjectLauncher *projectLauncher = nil;
|
||||
PCProject *activeProject = nil;
|
||||
|
||||
projectManager = aManager;
|
||||
activeProject = [projectManager rootActiveProject];
|
||||
projectLauncher = [activeProject projectLauncher];
|
||||
|
||||
projectLauncher = [[aManager activeProject] projectLauncher];
|
||||
|
||||
self = [super initWithContentRect: NSMakeRect (0, 300, 480, 322)
|
||||
styleMask: (NSTitledWindowMask
|
||||
|
|
|
@ -35,13 +35,11 @@
|
|||
|
||||
- (id)initWithProjectManager:(PCProjectManager *)aManager
|
||||
{
|
||||
PCProjectLoadedFiles *projectLoadedFiles = nil;
|
||||
PCProject *activeProject = nil;
|
||||
|
||||
projectManager = aManager;
|
||||
activeProject = [projectManager rootActiveProject];
|
||||
currentProject = activeProject;
|
||||
projectLoadedFiles = [activeProject projectLoadedFiles];
|
||||
|
||||
PCLogStatus(self, @"[init]");
|
||||
|
||||
|
|
|
@ -1337,6 +1337,9 @@ NSString *PCActiveProjectDidChangeNotification = @"PCActiveProjectDidChange";
|
|||
// Create subproject
|
||||
subproject = [self createSubprojectOfType:spType path:spPath];
|
||||
|
||||
// PCLogInfo(self, @"{createSubproject} add to %@", [activeProject projectName]);
|
||||
[activeProject addSubproject:subproject];
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -1366,9 +1369,6 @@ NSString *PCActiveProjectDidChangeNotification = @"PCActiveProjectDidChange";
|
|||
[subproject setSuperProject:activeProject];
|
||||
[subproject setProjectManager:self];
|
||||
|
||||
// PCLogInfo(self, @"{createSubproject} add to %@", [activeProject projectName]);
|
||||
[activeProject addSubproject:subproject];
|
||||
|
||||
return subproject;
|
||||
}
|
||||
|
||||
|
|
|
@ -200,10 +200,10 @@ NSString *PCDBDebuggerStartedNotification = @"PCDBDebuggerStartedNotification";
|
|||
id <PCDebuggerViewDelegateProtocol> viewDelegate;
|
||||
|
||||
breakpoints = [[NSMutableArray alloc] init];
|
||||
/* CRUDE EXAMPLES * TODO FIXME *
|
||||
NSDictionary *dP;
|
||||
NSLog(@"initing breakpoints");
|
||||
|
||||
/* CRUDE EXAMPLES * TODO FIXME *
|
||||
dP = [NSDictionary dictionaryWithObjectsAndKeys: PCBreakTypeMethod, PCBreakTypeKey, @"[NSException raise]", PCBreakMethod, nil];
|
||||
// [breakpoints addObject:dP];
|
||||
dP = [NSDictionary dictionaryWithObjectsAndKeys: PCBreakTypeByLine, PCBreakTypeKey, @"AppController.m", PCBreakFilename, [NSNumber numberWithInt:100], PCBreakLineNumber, nil];
|
||||
|
|
|
@ -147,7 +147,6 @@
|
|||
|
||||
- (PCDebuggerOutputTypes) parseStringLine: (NSString *)stringInput
|
||||
{
|
||||
BOOL found = NO;
|
||||
NSScanner *stringScanner;
|
||||
NSString *prefix = NULL;
|
||||
|
||||
|
@ -173,7 +172,6 @@
|
|||
if(prefix != nil)
|
||||
{
|
||||
NSString *dictionaryName = NULL;
|
||||
found = YES;
|
||||
|
||||
[stringScanner scanUpToString: @"," intoString: &dictionaryName];
|
||||
|
||||
|
|
|
@ -151,7 +151,7 @@ LocateString(NSString * str,
|
|||
- (void) assignGraphicalAttributesOfContext: (NSUInteger) context
|
||||
toRange: (NSRange) r;
|
||||
|
||||
- (void) assignGraphicalAttributesOfKeyword: (unsigned int) keyword
|
||||
- (void) assignGraphicalAttributesOfKeyword: (NSUInteger) keyword
|
||||
inContext: (NSUInteger) context
|
||||
toRange: (NSRange) r;
|
||||
|
||||
|
@ -180,7 +180,7 @@ LocateString(NSString * str,
|
|||
|
||||
NSUInteger i;
|
||||
unichar * string;
|
||||
unsigned int context;
|
||||
NSUInteger context;
|
||||
|
||||
string = (unichar *) malloc(r.length * sizeof(unichar));
|
||||
[[textStorage string] getCharacters: string range: r];
|
||||
|
@ -195,7 +195,7 @@ LocateString(NSString * str,
|
|||
// default context - look for beginning symbols
|
||||
if (context == 0)
|
||||
{
|
||||
unsigned int j = 0;
|
||||
NSUInteger j = 0;
|
||||
TextPattern * pattern = NULL;
|
||||
NSRange ctxtRange;
|
||||
NSInteger l = 0;
|
||||
|
|
|
@ -43,7 +43,6 @@
|
|||
//----------------------------------------------------------------------------
|
||||
|
||||
- (id)init;
|
||||
- (void)dealloc;
|
||||
|
||||
- (PCProject *)createProjectAt:(NSString *)path;
|
||||
|
||||
|
|
|
@ -158,6 +158,12 @@
|
|||
return self;
|
||||
}
|
||||
|
||||
- (PCProject *)createProjectAt:(NSString *)path withOption:(NSString *)option
|
||||
{
|
||||
// FIXME: Just to implement the protocol
|
||||
return [self createProjectAt:path];
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// --- File Handling
|
||||
// ----------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in a new issue