From cb0236f1c64f74132e410837bdcc5482c2b4d581 Mon Sep 17 00:00:00 2001 From: AnnaLioness Date: Fri, 1 Dec 2023 15:29:39 +0400 Subject: [PATCH] =?UTF-8?q?=D0=B8=D0=B7=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Lab1ContainersShip/ShipGenericStorage.cs | 24 +------------------ 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/Lab1ContainersShip/Lab1ContainersShip/ShipGenericStorage.cs b/Lab1ContainersShip/Lab1ContainersShip/ShipGenericStorage.cs index 420cd15..d192c0a 100644 --- a/Lab1ContainersShip/Lab1ContainersShip/ShipGenericStorage.cs +++ b/Lab1ContainersShip/Lab1ContainersShip/ShipGenericStorage.cs @@ -190,28 +190,6 @@ public bool SaveData(string filename) } return true; } - public bool SaveDop(string filename, string key) - { - if (File.Exists(filename)) - { - File.Delete(filename); - } - StringBuilder data = new StringBuilder(); - ShipGenericCollection record = _shipStorages[key]; - if (!_shipStorages.ContainsKey(key)) - { - return false; - } - if(record != null) - { - using (StreamWriter sr = new StreamWriter(filename)) - { - sr.Write(filename + " "); - sr.WriteLine(record); - return true; - } - } - return false; - } + } }