From f29b70570913a49f1926cf7086d59897ae4e7481 Mon Sep 17 00:00:00 2001 From: Davide Angelocola Date: Fri, 26 Jun 2026 20:58:03 +0200 Subject: [PATCH] chore: remove unused COMPRESS_CCTX binding MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ZSTD_compressCCtx is never called — one-shot compression goes through ZSTD_compress2 (COMPRESS2) with the context's advanced parameters. Drop the dead handle. Swept the rest of Bindings; it was the only one unused. Co-Authored-By: Claude Opus 4.8 --- zstd/src/main/java/io/github/dfa1/zstd/Bindings.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/zstd/src/main/java/io/github/dfa1/zstd/Bindings.java b/zstd/src/main/java/io/github/dfa1/zstd/Bindings.java index 91baf28..176b187 100644 --- a/zstd/src/main/java/io/github/dfa1/zstd/Bindings.java +++ b/zstd/src/main/java/io/github/dfa1/zstd/Bindings.java @@ -111,10 +111,6 @@ final class Bindings { // size_t ZSTD_freeCCtx(ZSTD_CCtx*) static final MethodHandle FREE_CCTX = NativeLibrary.lookup("ZSTD_freeCCtx", FunctionDescriptor.of(JAVA_LONG, ADDRESS)); - // size_t ZSTD_compressCCtx(ZSTD_CCtx*, void* dst, size_t dstCap, const void* src, size_t srcSize, int level) - static final MethodHandle COMPRESS_CCTX = - NativeLibrary.lookup("ZSTD_compressCCtx", - FunctionDescriptor.of(JAVA_LONG, ADDRESS, ADDRESS, JAVA_LONG, ADDRESS, JAVA_LONG, JAVA_INT)); // ZSTD_DCtx* ZSTD_createDCtx(void) static final MethodHandle CREATE_DCTX =