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; return null;
} }
} }
} }
} }

View File

@ -36,8 +36,6 @@ namespace speed_Boat.Generics
/// </summary> /// </summary>
public bool Insert(T boat) public bool Insert(T boat)
{ {
//TODO vstavka v nachalo nabora!!!
if(_places.Count == 0) if(_places.Count == 0)
{ {
_places.Add(boat); _places.Add(boat);
@ -58,29 +56,6 @@ namespace speed_Boat.Generics
} }
} }
return false; 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> /// <summary>
/// Добавление объекта в набор на конкретную позицию. /// Добавление объекта в набор на конкретную позицию.