From 6583232209d4d54a0f6a336777616a794fb54a5a Mon Sep 17 00:00:00 2001 From: hap Date: Thu, 28 Mar 2024 15:33:09 +0100 Subject: [PATCH] diexec: remove unneeded memset on attotime object in constructor --- src/emu/diexec.cpp | 2 -- src/mame/taito/taitosj.h | 5 ++--- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/emu/diexec.cpp b/src/emu/diexec.cpp index 4b06edc36d5..715f0c38459 100644 --- a/src/emu/diexec.cpp +++ b/src/emu/diexec.cpp @@ -70,8 +70,6 @@ device_execute_interface::device_execute_interface(const machine_config &mconfig , m_attoseconds_per_cycle(0) , m_spin_end_timer(nullptr) { - memset(&m_localtime, 0, sizeof(m_localtime)); - // configure the fast accessor assert(!device.interfaces().m_execute); device.interfaces().m_execute = this; diff --git a/src/mame/taito/taitosj.h b/src/mame/taito/taitosj.h index b8251f15cd3..b2a963c4cd1 100644 --- a/src/mame/taito/taitosj.h +++ b/src/mame/taito/taitosj.h @@ -1,7 +1,6 @@ // license:BSD-3-Clause // copyright-holders:Nicola Salmoria - #include "machine/input_merger.h" #include "sound/ay8910.h" #include "sound/dac.h" @@ -16,8 +15,8 @@ class taitosj_state : public driver_device { public: - taitosj_state(const machine_config &mconfig, device_type type, const char *tag) - : driver_device(mconfig, type, tag), + taitosj_state(const machine_config &mconfig, device_type type, const char *tag) : + driver_device(mconfig, type, tag), m_videoram(*this, "videoram_%u", 1U), m_spriteram(*this, "spriteram"), m_paletteram(*this, "paletteram"),