From 028c31a0d2784eba84bc7b1ffb47e2a82f717f23 Mon Sep 17 00:00:00 2001 From: Olivier Galibert Date: Fri, 24 Jul 2020 16:39:50 +0200 Subject: [PATCH] dgpix: profiling says 40% of the time is spend calling describe_context() and not using the result. [O. Galibert] --- src/devices/sound/ks0164.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/devices/sound/ks0164.cpp b/src/devices/sound/ks0164.cpp index e56c7c8dce0..8974ddeaa74 100644 --- a/src/devices/sound/ks0164.cpp +++ b/src/devices/sound/ks0164.cpp @@ -134,15 +134,6 @@ u8 ks0164_device::mpu401_status_r() if(m_mpu_status & MPUS_RX_FULL) res |= 0x40; - static std::string pc; - static u8 pr; - - std::string cc = machine().describe_context(); - if(pc != cc || pr != res) { - // logerror("status read %02x (%s)\n", res, cc); - pc = cc; - pr = res; - } return res; }