Skip to content

Commit

Permalink
SpigotMC#3767: Remove explicit direct buffer check
Browse files Browse the repository at this point in the history
  • Loading branch information
Janmm14 authored Dec 13, 2024
1 parent 7340f1a commit 15bd33b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@ public void free()
@Override
public void cipher(ByteBuf in, ByteBuf out) throws GeneralSecurityException
{
// Smoke tests
in.memoryAddress();
out.memoryAddress();
Preconditions.checkState( ctx != 0, "Invalid pointer to AES key!" );

// Store how many bytes we can cipher
Expand Down
3 changes: 0 additions & 3 deletions native/src/main/java/net/md_5/bungee/jni/zlib/NativeZlib.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,6 @@ public void free()
@Override
public void process(ByteBuf in, ByteBuf out) throws DataFormatException
{
// Smoke tests
in.memoryAddress();
out.memoryAddress();
Preconditions.checkState( ctx != 0, "Invalid pointer to compress!" );

while ( !nativeCompress.finished && ( compress || in.isReadable() ) )
Expand Down

0 comments on commit 15bd33b

Please sign in to comment.