Skip to content

Commit 18b8ace

Browse files
dfa1claude
andauthored
chore: remove unused COMPRESS_CCTX binding (#17)
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 <noreply@anthropic.com>
1 parent 08c194f commit 18b8ace

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

zstd/src/main/java/io/github/dfa1/zstd/Bindings.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,6 @@ final class Bindings {
111111
// size_t ZSTD_freeCCtx(ZSTD_CCtx*)
112112
static final MethodHandle FREE_CCTX =
113113
NativeLibrary.lookup("ZSTD_freeCCtx", FunctionDescriptor.of(JAVA_LONG, ADDRESS));
114-
// size_t ZSTD_compressCCtx(ZSTD_CCtx*, void* dst, size_t dstCap, const void* src, size_t srcSize, int level)
115-
static final MethodHandle COMPRESS_CCTX =
116-
NativeLibrary.lookup("ZSTD_compressCCtx",
117-
FunctionDescriptor.of(JAVA_LONG, ADDRESS, ADDRESS, JAVA_LONG, ADDRESS, JAVA_LONG, JAVA_INT));
118114

119115
// ZSTD_DCtx* ZSTD_createDCtx(void)
120116
static final MethodHandle CREATE_DCTX =

0 commit comments

Comments
 (0)