From f4acecb45347904ac8319726cd518829afe5904f Mon Sep 17 00:00:00 2001 From: AJR Date: Sun, 11 Feb 2024 12:51:19 -0500 Subject: [PATCH] imagedev/floppy.cpp: Delete unused getter that leaked details * util/options.h: Use forwarding header --- src/devices/imagedev/floppy.cpp | 5 ----- src/devices/imagedev/floppy.h | 1 - src/lib/util/options.h | 2 +- 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/devices/imagedev/floppy.cpp b/src/devices/imagedev/floppy.cpp index b0a520a078f..617d40ac463 100644 --- a/src/devices/imagedev/floppy.cpp +++ b/src/devices/imagedev/floppy.cpp @@ -1418,11 +1418,6 @@ uint32_t floppy_image_device::get_variant() const return m_image ? m_image->get_variant() : 0; } -std::vector &floppy_image_device::get_buffer() -{ - return m_image->get_buffer(m_cyl, m_ss, m_subcyl); -} - //=================================================================== // Floppy sound // diff --git a/src/devices/imagedev/floppy.h b/src/devices/imagedev/floppy.h index 6131d3b82b8..55572333726 100644 --- a/src/devices/imagedev/floppy.h +++ b/src/devices/imagedev/floppy.h @@ -115,7 +115,6 @@ public: void setup_wpt_cb(wpt_cb cb); void setup_led_cb(led_cb cb); - std::vector &get_buffer(); int get_cyl() const { return m_cyl; } bool on_track() const { return !m_subcyl; } diff --git a/src/lib/util/options.h b/src/lib/util/options.h index 99db519a5e5..8b85b9f58e6 100644 --- a/src/lib/util/options.h +++ b/src/lib/util/options.h @@ -12,6 +12,7 @@ #define MAME_LIB_UTIL_OPTIONS_H #include "strformat.h" +#include "utilfwd.h" #include #include @@ -43,7 +44,6 @@ const int OPTION_PRIORITY_MAXIMUM = 255; // maximum priority //************************************************************************** struct options_entry; -namespace util { class core_file; } // exception thrown by core_options when an illegal request is made class options_exception : public std::exception