From 73f414955469b18f02b356221bca86dc27b994b5 Mon Sep 17 00:00:00 2001 From: Alex Volkov Date: Wed, 11 Mar 2026 19:09:34 -0400 Subject: [PATCH] Refactor: remove the now unused flag variable in OptStackOps() --- src/cc65/coptstop.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/cc65/coptstop.c b/src/cc65/coptstop.c index 0cbb4beec..53cd2681a 100644 --- a/src/cc65/coptstop.c +++ b/src/cc65/coptstop.c @@ -2026,8 +2026,7 @@ unsigned OptStackOps (CodeSeg* S) unsigned PushedRegs = 0; /* Track if the same regs are used after the push */ int RhsAChgIndex; /* Track if rhs is changed more than once */ int RhsXChgIndex; /* Track if rhs is changed more than once */ - int IsRegAOptFunc = 0; /* Whether to use the RegA-only optimizations */ - + enum { Initialize, Search, @@ -2130,11 +2129,9 @@ unsigned OptStackOps (CodeSeg* S) */ if (SameRegXValueAtOp (&Data, E)) { Data.OptFunc = FindFunc (FuncRegATable, FUNC_COUNT (FuncRegATable), E->Arg); - IsRegAOptFunc = 1; } if (Data.OptFunc == 0) { Data.OptFunc = FindFunc (FuncTable, FUNC_COUNT (FuncTable), E->Arg); - IsRegAOptFunc = 0; } if (Data.OptFunc) { /* Disallow removing Rhs loads if the registers are used */