From 396d3337db154d5bbd64623ac9e25810f6c06722 Mon Sep 17 00:00:00 2001 From: Jonathan Bout Date: Thu, 28 Nov 2024 18:16:50 +0100 Subject: [PATCH] return the compression --- SimpleCDN/Helpers/GZipHelpers.cs | 3 --- 1 file changed, 3 deletions(-) diff --git a/SimpleCDN/Helpers/GZipHelpers.cs b/SimpleCDN/Helpers/GZipHelpers.cs index 0b0f974..3e41d06 100644 --- a/SimpleCDN/Helpers/GZipHelpers.cs +++ b/SimpleCDN/Helpers/GZipHelpers.cs @@ -11,8 +11,6 @@ public class GZipHelpers /// if the compressed data is not smaller than the original data. Otherwise, public static bool TryCompress(ref Span data) { - return false; -#pragma warning disable CS0162 // Unreachable code detected. Caching is disabled for now, but the code is left here for future reference. using var memoryStream = new MemoryStream(); using (var gzipStream = new GZipStream(memoryStream, CompressionMode.Compress, true)) { @@ -28,7 +26,6 @@ public static bool TryCompress(ref Span data) data = data[..read]; return true; -#pragma warning restore CS0162 // Unreachable code detected } public static byte[] Decompress(byte[] data)