From 6c348c994cbae216914693c7ee3fba7551548749 Mon Sep 17 00:00:00 2001 From: Andrew Steinborn Date: Mon, 21 Sep 2020 11:27:43 -0400 Subject: [PATCH] Don't need to call memoryAddress() here as we do it later on anyway --- .../natives/compression/LibdeflateVelocityCompressor.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/native/src/main/java/com/velocitypowered/natives/compression/LibdeflateVelocityCompressor.java b/native/src/main/java/com/velocitypowered/natives/compression/LibdeflateVelocityCompressor.java index e748fd70b..19dead4ac 100644 --- a/native/src/main/java/com/velocitypowered/natives/compression/LibdeflateVelocityCompressor.java +++ b/native/src/main/java/com/velocitypowered/natives/compression/LibdeflateVelocityCompressor.java @@ -29,8 +29,6 @@ public class LibdeflateVelocityCompressor implements VelocityCompressor { public void inflate(ByteBuf source, ByteBuf destination, int uncompressedSize) throws DataFormatException { ensureNotDisposed(); - source.memoryAddress(); - destination.memoryAddress(); // libdeflate recommends we work with a known uncompressed size - so we work strictly within // those parameters. If the uncompressed size doesn't match the compressed size, then we will