From 7e028ce97d71c4efa12965b5e70bc9436ad4b765 Mon Sep 17 00:00:00 2001 From: CosminPerRam Date: Thu, 17 Aug 2023 22:50:23 +0300 Subject: [PATCH] [Protocol] Remove Minecraft unused function to convert a string to bytes --- src/protocols/minecraft/types.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/protocols/minecraft/types.rs b/src/protocols/minecraft/types.rs index 3e61016..4f8296a 100644 --- a/src/protocols/minecraft/types.rs +++ b/src/protocols/minecraft/types.rs @@ -238,11 +238,3 @@ pub(crate) fn get_string(buffer: &mut Buffer) -> GDResult Vec { - let mut buf = as_varint(value.len() as i32); - buf.extend(value.as_bytes()); - - buf -}