summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/inptport.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/inptport.h')
-rw-r--r--src/emu/inptport.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/emu/inptport.h b/src/emu/inptport.h
index 86ccb51756b..796f22495c1 100644
--- a/src/emu/inptport.h
+++ b/src/emu/inptport.h
@@ -677,14 +677,6 @@ struct _inp_header
/* macro for wrapping a default string */
#define DEF_STR(str_num) ((const char *)INPUT_STRING_##str_num)
-/* macros for referencing input ports in place of read handlers */
-#define HANDLER_PORT(name, type) ((type)("\0\0\0\0" name))
-#define DEVICE8_PORT(name) HANDLER_PORT(name, read8_device_func)
-#define MACHINE8_PORT(name) HANDLER_PORT(name, read8_space_func)
-#define IS_HANDLER_PORT(ptr) (((const char *)(ptr))[0] == 0 && ((const char *)(ptr))[1] == 0 && ((const char *)(ptr))[2] == 0 && ((const char *)(ptr))[3] == 0)
-#define CALL_DEVICE8_READ(ptr,d,offs) (IS_HANDLER_PORT(ptr) ? input_port_read((d)->machine, ((const char *)(ptr)) + 4) : (*ptr)(d, offs))
-#define CALL_MACHINE8_READ(ptr,m,offs) (IS_HANDLER_PORT(ptr) ? input_port_read((m), ((const char *)(ptr)) + 4) : (*ptr)(m, offs))
-
/***************************************************************************