Permalink
Browse files

pcsx2: Remove/disable unused variables.

Removed:
MC2_SIZE in MemoryCardFile.cpp,
length in microVU_Log.inl
VU_Neg_Infinity in sVU_Upper.cpp.

Commented out:
mc_sizeinfo_8mb in Sio.cpp
  • Loading branch information...
lightningterror committed Jan 8, 2019
1 parent f2f66c0 commit ea38e2eba58ba87e8e245c8cc795363fb95cb3be
Showing with 2 additions and 4 deletions.
  1. +2 −1 pcsx2/Sio.cpp
  2. +0 −1 pcsx2/gui/MemoryCardFile.cpp
  3. +0 −1 pcsx2/x86/microVU_Log.inl
  4. +0 −1 pcsx2/x86/sVU_Upper.cpp
@@ -33,7 +33,8 @@ static const u8 memcard_psx[] = {0x5A, 0x5D, 0x5C, 0x5D, 0x04, 0x00, 0x00, 0x80}

// Memory Card Specs for standard Sony 8mb carts:
// Flags (magic sio '+' thingie!), Sector size, eraseBlockSize (in pages), card size (in pages), xor checksum (superblock?), terminator (unused?).
static const mc_command_0x26_tag mc_sizeinfo_8mb= {'+', 512, 16, 0x4000, 0x52, 0x5A};
// FIXME variable commented out since it's not used atm.
// static const mc_command_0x26_tag mc_sizeinfo_8mb= {'+', 512, 16, 0x4000, 0x52, 0x5A};

// Ejection timeout management belongs in the MemoryCardFile plugin, except the plugin
// interface is not yet complete.
@@ -44,7 +44,6 @@ struct Component_FileMcd;
static const int MCD_SIZE = 1024 * 8 * 16; // Legacy PSX card default size

static const int MC2_MBSIZE = 1024 * 528 * 2; // Size of a single megabyte of card data
static const int MC2_SIZE = MC2_MBSIZE * 8; // PS2 card default size (8MB)

// --------------------------------------------------------------------------------------
// FileMemoryCard
@@ -28,7 +28,6 @@ _mVUt void __mVULog(const char* fmt, ...) {
va_start(list, fmt);

// concatenate the log message after the prefix:
int length = vsprintf(tmp, fmt, list);
va_end(list);

mVU.logFile->Write( tmp );
@@ -129,7 +129,6 @@ static const __aligned16 u32 VU_Zero_Mask[4] = {0x00000000, 0x00000000, 0x000
static const __aligned16 u32 VU_Zero_Helper_Mask[4] = {0x7fffffff, 0x7fffffff, 0x7fffffff, 0x7fffffff};
static const __aligned16 u32 VU_Signed_Zero_Mask[4] = {0x80000000, 0x80000000, 0x80000000, 0x80000000};
static const __aligned16 u32 VU_Pos_Infinity[4] = {0x7f800000, 0x7f800000, 0x7f800000, 0x7f800000};
static const __aligned16 u32 VU_Neg_Infinity[4] = {0xff800000, 0xff800000, 0xff800000, 0xff800000};
//------------------------------------------------------------------


0 comments on commit ea38e2e

Please sign in to comment.