From 1bb7e2b1a85c7e7619a269f559cb8af0e223cfdf Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Thu, 3 Oct 2024 01:01:34 -0400 Subject: [PATCH] SDL_migration.cocci: Removed obsolete SDL_CreateWindowWithPosition code. This won't handle conversion of SDL_CreateWindow calls with arbitrary positions, but it still will handle the common UNDEFINED scenario. Fixes #11035. --- build-scripts/SDL_migration.cocci | 5 ----- 1 file changed, 5 deletions(-) diff --git a/build-scripts/SDL_migration.cocci b/build-scripts/SDL_migration.cocci index b0fe876fbb..0fa0f4b943 100644 --- a/build-scripts/SDL_migration.cocci +++ b/build-scripts/SDL_migration.cocci @@ -2478,11 +2478,6 @@ expression e1, e2, e3, e4; - SDL_CreateWindow(e1, SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, e2, e3, e4) + SDL_CreateWindow(e1, e2, e3, e4) @@ -expression e1, e2, e3, e4, e5, e6; -@@ -- SDL_CreateWindow(e1, e2, e3, e4, e5, e6) -+ SDL_CreateWindowWithPosition(e1, e2, e3, e4, e5, e6) -@@ expression e1, e2, e3, e4; constant c1, c2; @@