Removed obsolete function accessor.
This commit is contained in:
parent
b4b5016597
commit
f8cc979ed5
1 changed files with 27 additions and 40 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue