SDL: Revert "Initialize constant memory stream size"

From ae9489adbaade98f44d74f90fc24a3a014ca2648 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Thu, 24 Sep 2026 10:45:28 -0700
Subject: [PATCH] Revert "Initialize constant memory stream size"

This reverts commit 43035e851effbe30f4e71f52ef933aa0d36258b8.
---
 src/io/SDL_iostream.c          | 1 -
 test/testautomation_iostream.c | 6 ------
 2 files changed, 7 deletions(-)

diff --git a/src/io/SDL_iostream.c b/src/io/SDL_iostream.c
index 29a9af023ac55..31c74ab503410 100644
--- a/src/io/SDL_iostream.c
+++ b/src/io/SDL_iostream.c
@@ -1085,7 +1085,6 @@ SDL_IOStream *SDL_IOFromConstMem(const void *mem, size_t size)
     iodata->base = (Uint8 *)mem;
     iodata->here = iodata->base;
     iodata->stop = iodata->base + size;
-    iodata->size = size;
 
     SDL_IOStream *iostr = SDL_OpenIO(&iface, iodata);
     if (!iostr) {
diff --git a/test/testautomation_iostream.c b/test/testautomation_iostream.c
index 45d60771e81bb..240aaf9f0d457 100644
--- a/test/testautomation_iostream.c
+++ b/test/testautomation_iostream.c
@@ -385,7 +385,6 @@ static int SDLCALL iostrm_testMem(void *arg)
 static int SDLCALL iostrm_testConstMem(void *arg)
 {
     SDL_IOStream *rw;
-    SDL_PropertiesID props;
     int result;
 
     /* Open handle */
@@ -401,11 +400,6 @@ static int SDLCALL iostrm_testConstMem(void *arg)
     /* Run generic tests */
     testGenericIOStreamValidations(rw, false);
 
-    /* Verify properties preserve the supplied buffer size. */
-    props = SDL_GetIOProperties(rw);
-    SDLTest_AssertCheck(props != 0, "Get constant memory stream properties");
-    SDLTest_AssertCheck(SDL_GetNumberProperty(props, SDL_PROP_IOSTREAM_MEMORY_SIZE_NUMBER, -1) == (Sint64)(sizeof(IOStreamHelloWorldCompString) - 1), "Verify memory size property matches the supplied buffer size");
-
     /* Close handle */
     result = SDL_CloseIO(rw);
     SDLTest_AssertPass("Call to SDL_CloseIO() succeeded");