Skip to content

Commit 29bb5ff

Browse files
committed
Remove consts
1 parent d543e03 commit 29bb5ff

File tree

1 file changed

+2
-6
lines changed
  • runtime/runtime-core/native/src/aws/smithy/kotlin/runtime/compression

1 file changed

+2
-6
lines changed

runtime/runtime-core/native/src/aws/smithy/kotlin/runtime/compression/GzipCompressor.kt

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ import kotlinx.atomicfu.atomic
88
import kotlinx.cinterop.*
99
import platform.zlib.*
1010

11-
private const val DEFAULT_WINDOW_BITS = 15
12-
private const val GZIP_ENCODING = 16 // Add this to windowBits for gzip encoding
13-
private const val COMPRESSION_LEVEL = Z_BEST_COMPRESSION
14-
1511
/**
1612
* Streaming-style gzip compressor, implemented using zlib bindings
1713
*/
@@ -35,9 +31,9 @@ internal class GzipCompressor {
3531
// Initialize deflate with gzip encoding
3632
val initResult = deflateInit2_(
3733
stream.ptr,
38-
COMPRESSION_LEVEL,
34+
Z_BEST_COMPRESSION,
3935
Z_DEFLATED,
40-
DEFAULT_WINDOW_BITS + GZIP_ENCODING, // Add 16 for gzip encoding
36+
15 + 16, // Default windows bits (15) plus 16 for gzip encoding
4137
8, // Default memory level
4238
Z_DEFAULT_STRATEGY,
4339
ZLIB_VERSION,

0 commit comments

Comments
 (0)