From 1ef5c2083f982eed4a669727c5df1e10d109bf44 Mon Sep 17 00:00:00 2001 From: adelikat Date: Sun, 12 Apr 2020 15:02:48 -0500 Subject: [PATCH] actually remove IonicZipWriter instead of not compiling it --- .../BizHawk.Client.Common.csproj | 2 - BizHawk.Client.Common/IonicZipWriter.cs | 43 ------------------- 2 files changed, 45 deletions(-) delete mode 100644 BizHawk.Client.Common/IonicZipWriter.cs diff --git a/BizHawk.Client.Common/BizHawk.Client.Common.csproj b/BizHawk.Client.Common/BizHawk.Client.Common.csproj index d76357e815..e311024d7e 100644 --- a/BizHawk.Client.Common/BizHawk.Client.Common.csproj +++ b/BizHawk.Client.Common/BizHawk.Client.Common.csproj @@ -22,7 +22,6 @@ - - diff --git a/BizHawk.Client.Common/IonicZipWriter.cs b/BizHawk.Client.Common/IonicZipWriter.cs deleted file mode 100644 index a858be48f1..0000000000 --- a/BizHawk.Client.Common/IonicZipWriter.cs +++ /dev/null @@ -1,43 +0,0 @@ -using System; -using System.IO; - -using Ionic.Zip; - -namespace BizHawk.Client.Common -{ - public class IonicZipWriter : IZipWriter - { - private readonly int _level; - private ZipOutputStream _zipOutputStream; - - public IonicZipWriter(string path, int compressionlevel) - { - _level = compressionlevel; - _zipOutputStream = new ZipOutputStream(path) - { - EnableZip64 = Zip64Option.Never, - CompressionLevel = (Ionic.Zlib.CompressionLevel)_level, - CompressionMethod = CompressionMethod.Deflate - }; - } - - public void WriteItem(string name, Action callback) - { - var e = _zipOutputStream.PutNextEntry(name); - e.CompressionMethod = _level == 0 - ? CompressionMethod.None - : CompressionMethod.Deflate; - - callback(_zipOutputStream); // there is no CloseEntry() call - } - - public void Dispose() - { - if (_zipOutputStream != null) - { - _zipOutputStream.Dispose(); - _zipOutputStream = null; - } - } - } -}