summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/imagedev
diff options
context:
space:
mode:
author Ivan Vangelista <mesgnet@yahoo.it>2019-01-19 09:24:24 +0100
committer Ivan Vangelista <mesgnet@yahoo.it>2019-01-19 09:24:24 +0100
commit4bea46bec7553159f4fb49ed3986ec45d8caa848 (patch)
tree5e51db40813fecab9aa9ed0125fc26fac0bb8b06 /src/devices/imagedev
parent3c158de6242ff3a0f822752701609ba347d6cd77 (diff)
midi: remove MCFG macros (nw)
Diffstat (limited to 'src/devices/imagedev')
-rw-r--r--src/devices/imagedev/midiin.h5
-rw-r--r--src/devices/imagedev/midiout.h8
2 files changed, 1 insertions, 12 deletions
diff --git a/src/devices/imagedev/midiin.h b/src/devices/imagedev/midiin.h
index b429bc4f65f..8254c6965a0 100644
--- a/src/devices/imagedev/midiin.h
+++ b/src/devices/imagedev/midiin.h
@@ -15,9 +15,6 @@
#include "diserial.h"
-#define MCFG_MIDIIN_INPUT_CB(_devcb) \
- downcast<midiin_device &>(*device).set_input_callback(DEVCB_##_devcb);
-
/***************************************************************************
TYPE DEFINITIONS
@@ -31,7 +28,7 @@ public:
// construction/destruction
midiin_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
- template <class Object> devcb_base &set_input_callback(Object &&cb) { return m_input_cb.set_callback(std::forward<Object>(cb)); }
+ auto input_callback() { return m_input_cb.bind(); }
// image-level overrides
virtual image_init_result call_load() override;
diff --git a/src/devices/imagedev/midiout.h b/src/devices/imagedev/midiout.h
index 713c783b992..159e71cab17 100644
--- a/src/devices/imagedev/midiout.h
+++ b/src/devices/imagedev/midiout.h
@@ -15,14 +15,6 @@
#include "diserial.h"
-/***************************************************************************
- CONSTANTS
-***************************************************************************/
-
-
-#define MCFG_MIDIOUT_ADD(_tag) \
- MCFG_DEVICE_ADD(_tag, MIDIOUT, 0)
-
/***************************************************************************
TYPE DEFINITIONS