From e4e29a190711236857e40f46ee53f008fc77f5b1 Mon Sep 17 00:00:00 2001 From: JoeTwizzle Date: Sat, 24 Oct 2026 14:38:05 +0200 Subject: [PATCH] Remove BS comments --- ReFuel.Gltf/IO/StreamWrapper.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/ReFuel.Gltf/IO/StreamWrapper.cs b/ReFuel.Gltf/IO/StreamWrapper.cs index 0c6b467..7178c2a 100644 --- a/ReFuel.Gltf/IO/StreamWrapper.cs +++ b/ReFuel.Gltf/IO/StreamWrapper.cs @@ -9,7 +9,7 @@ namespace ReFuel.Gltf.IO // Shared across forks so that concurrent access to the same base stream is serialized. private readonly object _sync; - // Logical position relative to Head. This is the fix for the "Position lies" problem. + // Logical position relative to Head. private long _position; public long Head { get; private init; } @@ -188,7 +188,6 @@ namespace ReFuel.Gltf.IO break; case SeekOrigin.End: - // End of our window, not necessarily end of the underlying stream. long windowEndRel = Tail >= 0 ? Tail - Head : _baseStream.Length - Head; @@ -277,7 +276,6 @@ namespace ReFuel.Gltf.IO _baseStream.SetLength(newEnd); - // Update our window end to match what we just did. Tail = Tail >= 0 ? Tail : -1; if (_position > value) @@ -317,8 +315,6 @@ namespace ReFuel.Gltf.IO keepOpen, IsReadOnly || isReadOnly); } - // ---------- Helpers ---------- - private static void ValidateBufferArgs(byte[] buffer, int offset, int count) { ArgumentNullException.ThrowIfNull(buffer);