mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2025-02-14 19:01:24 +01:00
#3767: Remove explicit direct buffer check
This commit is contained in:
parent
7340f1a035
commit
15bd33b25b
@ -37,9 +37,6 @@ public class NativeCipher implements BungeeCipher
|
||||
@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
|
||||
|
@ -48,9 +48,6 @@ public class NativeZlib implements BungeeZlib
|
||||
@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() ) )
|
||||
|
Loading…
Reference in New Issue
Block a user