From d86ff6c6c07e9c73917b3906b6e375ba0f0df2eb Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Fri, 8 Mar 2024 18:55:40 +0300 Subject: [PATCH] remove stale / wrong information from SDL_RWread() documentation --- test/testime.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/test/testime.c b/test/testime.c index 5e88f4a61a..aa25e9d9e1 100644 --- a/test/testime.c +++ b/test/testime.c @@ -186,10 +186,6 @@ static int unifont_init(const char *fontname) SDL_memmove(hexBuffer, hexBuffer + codepointHexSize + 1, bytesOverread); } bytesRead = SDL_RWread(hexFile, hexBuffer + bytesOverread, 33 - bytesOverread); - if (bytesRead < 0) { - SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "error SDL_RWread\n"); - return -1; - } if (bytesRead < (33 - bytesOverread)) { SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "unifont: Unexpected end of hex file.\n"); @@ -200,11 +196,6 @@ static int unifont_init(const char *fontname) } else { glyphWidth = 16; bytesRead = SDL_RWread(hexFile, hexBuffer + 33, 32); - if (bytesRead < 0) { - SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "error SDL_RWread\n"); - return -1; - } - if (bytesRead < 32) { SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "unifont: Unexpected end of hex file.\n"); return -1;