Skip to content
Snippets Groups Projects
Commit 68515b69 authored by neil's avatar neil
Browse files

Cleanup stuff we're not using

git-svn-id: http://svn.net-core.org/repos/t-engine4@625 51575b47-30f0-44d4-a5cc-537603b46e54
parent cd8ad308
No related branches found
No related tags found
No related merge requests found
......@@ -40,22 +40,6 @@ static NSString *getApplicationName(void)
/* The main class of the application, the application's delegate */
@implementation SDLMain
/* Set the working directory to the .app's parent directory */
- (void) setupWorkingDirectory:(BOOL)shouldChdir
{
if (shouldChdir)
{
char parentdir[MAXPATHLEN];
CFURLRef url = CFBundleCopyBundleURL(CFBundleGetMainBundle());
CFURLRef url2 = CFURLCreateCopyDeletingLastPathComponent(0, url);
if (CFURLGetFileSystemRepresentation(url2, true, parentdir, MAXPATHLEN))
assert ( chdir (parentdir) == 0 ); /* chdir to the binary app's parent */
CFRelease(url);
CFRelease(url2);
}
}
static NSMenu *setupApplicationMenu(NSMenu *mainMenu)
{
NSMenu *appleMenu;
......@@ -125,6 +109,8 @@ static NSMenu *setupWindowMenu(NSMenu *mainMenu)
/* Finally give up our references to the objects */
[windowMenu release];
[windowMenuItem release];
return windowMenu;
}
char *macToMEConfigPath = 0;
......@@ -222,9 +208,6 @@ int tengine_main(int, char **);
{
int status;
/* Set the working directory to the .app's parent directory */
[self setupWorkingDirectory:gFinderLaunch];
/* Hand off to main application code */
gCalledAppMainline = TRUE;
status = tengine_main (gArgc, gArgv);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment