From 34af95da9ea8ec2b5957f62ff3265c09628192fc Mon Sep 17 00:00:00 2001 From: Tim Allen Date: Sun, 4 Apr 2021 21:52:40 +1000 Subject: [PATCH] sfc: Remove unused auto-joypad-polling variables. These variables stopped being useful after commit 39c37ec, which switched to tracking auto-polling state in the autoJoypadCounter variable. --- bsnes/sfc/cpu/cpu.hpp | 2 -- bsnes/sfc/cpu/serialization.cpp | 2 -- 2 files changed, 4 deletions(-) diff --git a/bsnes/sfc/cpu/cpu.hpp b/bsnes/sfc/cpu/cpu.hpp index 912ec6b5..19a486be 100644 --- a/bsnes/sfc/cpu/cpu.hpp +++ b/bsnes/sfc/cpu/cpu.hpp @@ -118,8 +118,6 @@ private: bool hdmaPending = 0; bool hdmaMode = 0; //0 = init, 1 = run - bool autoJoypadActive = 0; - bool autoJoypadLatch = 0; uint autoJoypadCounter = 33; //state machine; 4224 / 128 = 33 (inactive) } status; diff --git a/bsnes/sfc/cpu/serialization.cpp b/bsnes/sfc/cpu/serialization.cpp index 298079b1..7a1c2401 100644 --- a/bsnes/sfc/cpu/serialization.cpp +++ b/bsnes/sfc/cpu/serialization.cpp @@ -43,8 +43,6 @@ auto CPU::serialize(serializer& s) -> void { s.integer(status.hdmaPending); s.integer(status.hdmaMode); - s.integer(status.autoJoypadActive); - s.integer(status.autoJoypadLatch); s.integer(status.autoJoypadCounter); s.integer(io.wramAddress);