Streamline gopen code.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22771 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2006-04-09 16:28:35 +00:00
parent e771f07307
commit 9a5abba61f
2 changed files with 7 additions and 16 deletions

View file

@ -1,3 +1,7 @@
2006-04-09 12:28 Gregory John Casamento <greg_casamento@yahoo.com>
* Tools/gopen.m: Streamline gopen code.
2006-04-06 Adam Fedor <fedor@gnu.org>
* Tools/gcloseall.m: Include NSProcessInfo.h. Fixes bug #16212.

View file

@ -126,22 +126,9 @@ main(int argc, char** argv, char **env_c)
{
NSString *ext = [arg pathExtension];
if ([arg isEqualToString: @"-a"])
{
// skip since this is handled above...
arg = [argEnumerator nextObject];
}
else if ([arg isEqualToString: @"-o"])
{
// skip since this is handled above...
arg = [argEnumerator nextObject];
}
else if ([arg isEqualToString: @"-p"])
{
// skip since this is handled above...
arg = [argEnumerator nextObject];
}
else if ([arg isEqualToString: @"-NXHost"])
if ([arg isEqualToString: @"-a"] ||
[arg isEqualToString: @"-o"] ||
[arg isEqualToString: @"-NXHost"])
{
// skip since this is handled above...
arg = [argEnumerator nextObject];