private void RemoveSelected()
{
bool flag = false;
List<CurveSelection> selectedCurves = this.m_CurveEditor.selectedCurves;
for (int i = 0; i < selectedCurves.Count; i++)
{
int curveID = selectedCurves[i].curveID;
for (int j = 0; j < this.m_AddedCurves.Count; j++)
{
CurveData data = this.m_AddedCurves[j];
if ((data.m_MaxId == curveID) || (data.m_MinId == curveID))
{
flag |= this.Remove(j);
break;
}
}
}
if (flag)
{
this.ContentChanged();
this.UpdateRangeBasedOnShownCurves();
}
this.m_CurveEditor.SelectNone();
}