Remove OrderedList.ReplacyBy method, as it is not used and might be not predictable (issue #25)

This commit is contained in:
Alexandre Mutel
2016-06-24 05:25:54 +09:00
parent 087e7a68b6
commit 7fe2c1f939

View File

@@ -101,19 +101,5 @@ namespace Markdig.Helpers
}
return false;
}
public bool ReplacyBy<TElement>(T element) where TElement : T
{
if (element == null) throw new ArgumentNullException(nameof(element));
for (int i = 0; i < Count; i++)
{
if (this[i] is TElement)
{
this[i] = element;
return true;
}
}
return false;
}
}
}