SI_Device: Remove Dead Config Code

This commit is contained in:
mitaclaw 2024-09-04 08:28:18 -07:00
parent 95fac2a4e7
commit e67e579b38
2 changed files with 0 additions and 29 deletions

View File

@ -3,11 +3,8 @@
#include "Core/HW/SI/SI_Device.h"
#include <istream>
#include <memory>
#include <ostream>
#include <string>
#include <type_traits>
#include <fmt/format.h>
@ -34,28 +31,6 @@ constexpr u64 GBA_BITS_PER_SECOND = 250000;
constexpr u64 GC_STOP_BIT_NS = 6500;
constexpr u64 GBA_STOP_BIT_NS = 14000;
std::ostream& operator<<(std::ostream& stream, SIDevices device)
{
stream << static_cast<std::underlying_type_t<SIDevices>>(device);
return stream;
}
std::istream& operator>>(std::istream& stream, SIDevices& device)
{
std::underlying_type_t<SIDevices> value;
if (stream >> value)
{
device = static_cast<SIDevices>(value);
}
else
{
device = SIDevices::SIDEVICE_NONE;
}
return stream;
}
ISIDevice::ISIDevice(Core::System& system, SIDevices device_type, int device_number)
: m_system(system), m_device_number(device_number), m_device_type(device_type)
{

View File

@ -3,7 +3,6 @@
#pragma once
#include <iosfwd>
#include <memory>
#include "Common/CommonTypes.h"
@ -107,9 +106,6 @@ enum SIDevices : int
SIDEVICE_COUNT,
};
std::ostream& operator<<(std::ostream& stream, SIDevices device);
std::istream& operator>>(std::istream& stream, SIDevices& device);
class ISIDevice
{
public: