From 354155db200738d5d0ed0e7d5f48451ffd78f515 Mon Sep 17 00:00:00 2001 From: Jarrod Doyle Date: Fri, 6 Sep 2024 19:51:03 +0100 Subject: [PATCH] Remove unused debug prints --- project/code/Images/GifDecoder.cs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/project/code/Images/GifDecoder.cs b/project/code/Images/GifDecoder.cs index a9e4d25..777306b 100644 --- a/project/code/Images/GifDecoder.cs +++ b/project/code/Images/GifDecoder.cs @@ -35,11 +35,9 @@ public class GifDecoder LogicalScreenHeight = reader.ReadUInt16(); var flags = reader.ReadByte(); HasGlobalColorTable = ((flags >> 7) & 0x1) != 0; - // Godot.GD.Print($"HALLO WE HAVE GLOBAL TABLE? {HasGlobalColorTable}"); BitsPerColorChannel = (byte)(((flags >> 4) & 0x7) + 1); IsGlobalColorTableSorted = ((flags >> 3) & 0x1) != 0; GlobalColorTableSize = (int)Math.Pow(2, (flags & 0x7) + 1); - // Godot.GD.Print($"Global colour size? {GlobalColorTableSize}"); BackgroundColorIndex = reader.ReadByte(); var rawAspectRatio = reader.ReadByte(); if (rawAspectRatio == 0) @@ -141,7 +139,6 @@ public class GifDecoder compressedBytes.AddRange(bytes); blockSize = reader.ReadByte(); } - // Godot.GD.Print($"End of image data: {reader.BaseStream.Position}"); using MemoryStream compressedStream = new(compressedBytes.ToArray()); using BinaryReader compressedReader = new(compressedStream, Encoding.UTF8, false); @@ -181,7 +178,6 @@ public class GifDecoder } else if (code == endCode) { - // Godot.GD.Print($"CompressedBytesLeft: {compressedReader.BaseStream.Length - compressedReader.BaseStream.Position}"); break; } else if (code < codeCount) @@ -313,8 +309,6 @@ public class GifDecoder throw new FileNotFoundException(); } - // Godot.GD.Print($"Decoding image at: {path}"); - using MemoryStream stream = new(File.ReadAllBytes(path)); using BinaryReader reader = new(stream, Encoding.UTF8, false);