From 432cf32871c514963e506c6c6bdd184d742c3181 Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Sat, 3 Aug 2019 01:30:25 +1000 Subject: emu/mconfig: that stuff was just there to support MCFG macros (nw) --- src/emu/mconfig.h | 36 +----------------------------------- 1 file changed, 1 insertion(+), 35 deletions(-) diff --git a/src/emu/mconfig.h b/src/emu/mconfig.h index cf683c8b1c8..84d42d94996 100644 --- a/src/emu/mconfig.h +++ b/src/emu/mconfig.h @@ -1,13 +1,6 @@ // license:BSD-3-Clause // copyright-holders:Aaron Giles /***************************************************************************/ -/** - * @file mconfig.h - * @defgroup MACHINE_CONFIG Machine configuration macros and functions - * @{ - */ -/***************************************************************************/ - #pragma once @@ -190,31 +183,4 @@ private: device_t * m_current_device; }; - -namespace emu { namespace detail { - -template -inline std::enable_if_t::exposed_type>::value, typename std::remove_reference_t::exposed_type *> device_add_impl(machine_config &mconfig, Tag &&tag, Creator &&type, Params &&... args) -{ - return &type(mconfig, std::forward(tag), std::forward(args)...); -} -template -inline std::enable_if_t::exposed_type>::value, device_t *> device_add_impl(machine_config &mconfig, Tag &&tag, Creator &&type, Params &&... args) -{ - return &type(mconfig, std::forward(tag), std::forward(args)...).device(); -} -template -inline std::enable_if_t::exposed_type>::value, typename std::remove_reference_t::exposed_type *> device_replace_impl(machine_config &mconfig, Tag &&tag, Creator &&type, Params &&... args) -{ - return &type(mconfig.replace(), std::forward(tag), std::forward(args)...); -} -template -inline std::enable_if_t::exposed_type>::value, device_t *> device_replace_impl(machine_config &mconfig, Tag &&tag, Creator &&type, Params &&... args) -{ - return &type(mconfig.replace(), std::forward(tag), std::forward(args)...).device(); -} - -} } // namespace emu::detail - -#endif /* MAME_EMU_MCONFIG_H */ -/** @} */ +#endif // MAME_EMU_MCONFIG_H -- cgit v1.2.3