удалён комм. код

This commit is contained in:
AnnaLioness 2023-12-19 12:28:11 +04:00
parent 69bc174b89
commit 6e8888240b
2 changed files with 0 additions and 24 deletions

View File

@ -34,21 +34,6 @@ namespace Lab1ContainersShip
/// </summary>
/// <param name="car">Добавляемый автомобиль</param>
/// <returns></returns>
/*public int Insert(T ship)
{
// TODO вставка в начало набора
if(_places.Count >= _maxCount)
{
throw new StorageOverflowException();
return -1;
}
else
{
_places.Insert(0, ship);
return 0;
}
}*/
public bool Insert(T ship, IEqualityComparer<T?>? equal = null)
{
return Insert(ship, 0, equal);
@ -79,14 +64,6 @@ namespace Lab1ContainersShip
{
throw new ShipNotFoundException(position);
}
/*if(position == _places.Count)
{
_places.Add(ship);
}
else
{
_places.Insert(position, ship);
}*/
if (equal != null && _places.Contains(ship, equal))
{
throw new ApplicationException("уже есть");

View File

@ -60,7 +60,6 @@ namespace Lab1ContainersShip
{
return false;
}
//return collect?._collection.Insert(obj) ?? -1;
return (bool)collect?._collection.Insert(obj, new DrawiningShipEqutables());
}