Removed obsolete function accessor.

This commit is contained in:
Jarl Gullberg 2017-06-20 15:21:18 +02:00
parent b4b5016597
commit f8cc979ed5
No known key found for this signature in database
GPG key ID: 750FF6F6BDA72D23

View file

@ -529,19 +529,6 @@ namespace Mono.Options
throw new InvalidOperationException ("Option has no names!");
}
[Obsolete ("Use KeyedCollection.this[string]")]
protected Option GetOptionForName (string option)
{
if (option == null)
throw new ArgumentNullException ("option");
try {
return base [option];
}
catch (KeyNotFoundException) {
return null;
}
}
protected override void InsertItem (int index, Option item)
{
base.InsertItem (index, item);