Skip to content

Commit

Permalink
SPU2: Cleanup unused destructor
Browse files Browse the repository at this point in the history
  • Loading branch information
Ziemas committed Oct 10, 2023
1 parent e290a3f commit a0576c8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 21 deletions.
3 changes: 1 addition & 2 deletions pcsx2/SPU2/defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -471,8 +471,7 @@ struct V_Core
, DMAPtr(nullptr)
{
}
V_Core(int idx); // our badass constructor
~V_Core() throw();
V_Core(int idx) : Index(idx) {};

void Init(int index);
void UpdateEffectsBufferSize();
Expand Down
19 changes: 0 additions & 19 deletions pcsx2/SPU2/spu2sys.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,25 +106,6 @@ __forceinline void spu2M_Write(u32 addr, u16 value)
V_VolumeLR V_VolumeLR::Max(0x7FFF);
V_VolumeSlideLR V_VolumeSlideLR::Max(0x3FFF, 0x7FFF);

V_Core::V_Core(int coreidx)
: Index(coreidx)
//LogFile_AutoDMA( nullptr )
{
/*char fname[128];
sprintf( fname, "logs/adma%d.raw", GetDmaIndex() );
LogFile_AutoDMA = fopen( fname, "wb" );*/
}

V_Core::~V_Core() throw()
{
// Can't use this yet because we dumb V_Core into savestates >_<
/*if( LogFile_AutoDMA != nullptr )
{
fclose( LogFile_AutoDMA );
LogFile_AutoDMA = nullptr;
}*/
}

void V_Core::Init(int index)
{
if (SPU2::MsgToConsole())
Expand Down

0 comments on commit a0576c8

Please sign in to comment.