This commit is contained in:
chtzsch ~ 2023-11-01 12:22:40 +03:00
parent 4dd8e12530
commit 7a57f00e6e
2 changed files with 0 additions and 28 deletions

View File

@ -85,8 +85,5 @@ namespace speed_Boat.Generics
return null;
}
}
}
}

View File

@ -36,8 +36,6 @@ namespace speed_Boat.Generics
/// </summary>
public bool Insert(T boat)
{
//TODO vstavka v nachalo nabora!!!
if(_places.Count == 0)
{
_places.Add(boat);
@ -58,29 +56,6 @@ namespace speed_Boat.Generics
}
}
return false;
/*int currentI = -1;
for(int i = 0; i < _maxCount; i++)//_maxCount ili _places.Count?
{
if (_places[i] != null)
{
currentI = i;
break;
}
}
if (currentI < 0)
{
return false;
}
for(int i = currentI; i > 0; i--)
{
_places[i] = _places[i - 1];
}
_places[0] = boat;
return true;*/
}
/// <summary>
/// Добавление объекта в набор на конкретную позицию.