Removed unused method GetNamedArg

This commit is contained in:
Dmitri Suvorov
2015-07-04 18:16:31 +03:00
parent 27f492b793
commit 88ffa3836e

View File

@@ -86,17 +86,5 @@ namespace OpenRA.Utility
Console.WriteLine(" {0} {1} ({2})", a.Key, args, desc);
}
}
static string GetNamedArg(string[] args, string arg)
{
if (args.Length < 2)
return null;
var i = Array.IndexOf(args, arg);
if (i < 0 || i == args.Length - 1) // doesnt exist, or doesnt have a value.
return null;
return args[i + 1];
}
}
}